Qwann/move user #13

Merged
narmanli merged 11 commits from qwann/move_user into master 2017-05-16 19:13:53 +02:00
3 changed files with 2 additions and 3 deletions
Showing only changes of commit 6e733492ac - Show all commits

View file

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

View file

@ -22,8 +22,6 @@ urlpatterns = [
# LOGOUT # LOGOUT
url(r'^logout/$', url(r'^logout/$',
auth_views.logout, auth_views.logout,
{'next_page': reverse_lazy('shared:home'),
},
name='logout',), name='logout',),
# PASSWORD_CHANGE # PASSWORD_CHANGE
url(r'^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éé !" 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