small fixes
This commit is contained in:
parent
03b1fc31b8
commit
7a4a836d6e
3 changed files with 2 additions and 3 deletions
|
@ -63,6 +63,7 @@ MIDDLEWARE_CLASSES = [
|
||||||
ROOT_URLCONF = 'evenementiel.urls'
|
ROOT_URLCONF = 'evenementiel.urls'
|
||||||
|
|
||||||
LOGIN_REDIRECT_URL = reverse_lazy('shared:home')
|
LOGIN_REDIRECT_URL = reverse_lazy('shared:home')
|
||||||
|
LOGOUT_REDIRECT_URL = reverse_lazy('shared:home')
|
||||||
|
|
||||||
TEMPLATES = [
|
TEMPLATES = [
|
||||||
{
|
{
|
||||||
|
|
|
@ -22,8 +22,6 @@ urlpatterns = [
|
||||||
# LOGOUT
|
# LOGOUT
|
||||||
url('^logout/$',
|
url('^logout/$',
|
||||||
auth_views.logout,
|
auth_views.logout,
|
||||||
{'next_page': reverse_lazy('shared:home'),
|
|
||||||
},
|
|
||||||
name='logout',),
|
name='logout',),
|
||||||
# PASSWORD_CHANGE
|
# PASSWORD_CHANGE
|
||||||
url('^password_change/$',
|
url('^password_change/$',
|
||||||
|
|
|
@ -11,7 +11,7 @@ class CreateUser(SuccessMessageMixin, CreateView):
|
||||||
success_message = "Votre compte utilisateur a été correctement créé !"
|
success_message = "Votre compte utilisateur a été correctement créé !"
|
||||||
|
|
||||||
def get_context_data(self, **kwargs):
|
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['button'] = 'Créer'
|
||||||
ctx['page_title'] = "Création d'utilisateur"
|
ctx['page_title'] = "Création d'utilisateur"
|
||||||
return ctx
|
return ctx
|
||||||
|
|
Loading…
Reference in a new issue