Merge branch 'qwann/views/shared' into qwann/move_user

This commit is contained in:
Qwann 2017-04-26 19:02:41 +02:00
commit 6e733492ac
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(r'^logout/$',
auth_views.logout,
{'next_page': reverse_lazy('shared:home'),
},
name='logout',),
# PASSWORD_CHANGE
url(r'^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