mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-19 17:18:23 +02:00
Merge pull request #632 from adrianboyko/patch-1
Fixed login/logout for Django 2.1. (Also applies to Django 1.11+)
This commit is contained in:
commit
25b842aa9b
@ -185,13 +185,14 @@ urlpatterns += [
|
||||
|
||||
urlpatterns += [
|
||||
url(r'^login/$',
|
||||
auth_views.login,
|
||||
{'template_name': 'helpdesk/registration/login.html'},
|
||||
auth_views.LoginView.as_view(
|
||||
template_name='helpdesk/registration/login.html'),
|
||||
name='login'),
|
||||
|
||||
url(r'^logout/$',
|
||||
auth_views.logout,
|
||||
{'template_name': 'helpdesk/registration/login.html', 'next_page': '../'},
|
||||
auth_views.LogoutView.as_view(
|
||||
template_name='helpdesk/registration/login.html',
|
||||
next_page='../'),
|
||||
name='logout'),
|
||||
]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user