diff --git a/helpdesk/urls.py b/helpdesk/urls.py index 6772da22..c6c7379f 100644 --- a/helpdesk/urls.py +++ b/helpdesk/urls.py @@ -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'), ]