Merge branch 'qwann/views/shared' into qwann/move_user
This commit is contained in:
commit
6e733492ac
3 changed files with 2 additions and 3 deletions
|
@ -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 = [
|
||||
{
|
||||
|
|
|
@ -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/$',
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue