From 7a4a836d6eac5b4f27a16cf0be0eb1573547cb81 Mon Sep 17 00:00:00 2001 From: Qwann Date: Wed, 26 Apr 2017 04:08:25 +0200 Subject: [PATCH] small fixes --- evenementiel/settings_dev.py | 1 + user/urls.py | 2 -- user/views.py | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/evenementiel/settings_dev.py b/evenementiel/settings_dev.py index 724846b..54f17a8 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/user/urls.py b/user/urls.py index bcf5fcb..3295c69 100644 --- a/user/urls.py +++ b/user/urls.py @@ -22,8 +22,6 @@ urlpatterns = [ # LOGOUT url('^logout/$', auth_views.logout, - {'next_page': reverse_lazy('shared:home'), - }, name='logout',), # PASSWORD_CHANGE url('^password_change/$', diff --git a/user/views.py b/user/views.py index b82cc16..1860113 100644 --- a/user/views.py +++ b/user/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