diff --git a/evenementiel/settings_dev.py b/evenementiel/settings_dev.py index 3677ff7..0f07994 100644 --- a/evenementiel/settings_dev.py +++ b/evenementiel/settings_dev.py @@ -63,6 +63,7 @@ MIDDLEWARE_CLASSES = [ ROOT_URLCONF = 'evenementiel.urls' LOGIN_REDIRECT_URL = reverse_lazy('shared:home') +LOGOUT_REDIRECT_URL = reverse_lazy('shared:home') TEMPLATES = [ { diff --git a/users/urls.py b/users/urls.py index 2b0bb37..b7d6422 100644 --- a/users/urls.py +++ b/users/urls.py @@ -22,8 +22,6 @@ urlpatterns = [ # LOGOUT url(r'^logout/$', auth_views.logout, - {'next_page': reverse_lazy('shared:home'), - }, name='logout',), # PASSWORD_CHANGE url(r'^password_change/$', diff --git a/users/views.py b/users/views.py index 04014e0..0746591 100644 --- a/users/views.py +++ b/users/views.py @@ -11,7 +11,7 @@ class CreateUser(SuccessMessageMixin, CreateView): success_message = "Votre compte utilisateur a été correctement créé !" def get_context_data(self, **kwargs): - ctx = super(CreateUser, self).get_context_data(**kwargs) + ctx = super().get_context_data(**kwargs) ctx['button'] = 'Créer' ctx['page_title'] = "Création d'utilisateur" return ctx