small fixes

This commit is contained in:
Qwann 2017-04-26 04:08:25 +02:00
parent 03b1fc31b8
commit 7a4a836d6e
3 changed files with 2 additions and 3 deletions

View file

@ -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 = [
{

View file

@ -22,8 +22,6 @@ urlpatterns = [
# LOGOUT
url('^logout/$',
auth_views.logout,
{'next_page': reverse_lazy('shared:home'),
},
name='logout',),
# PASSWORD_CHANGE
url('^password_change/$',

View file

@ -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