diff options
| author | Claude Paroz <claude@2xlibre.net> | 2016-05-15 17:28:00 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2016-06-24 10:45:13 +0200 |
| commit | 78963495d0caadb77eb97ccf319ef0ba3b204fb5 (patch) | |
| tree | 52162432f13b92b85b6188a6415887cfc06c5701 /tests/test_client | |
| parent | 742ea51413b3aab07c6afbfd1d52c1908ffcb510 (diff) | |
Refs #17209 -- Added LoginView and LogoutView class-based views
Thanks Tim Graham for the review.
Diffstat (limited to 'tests/test_client')
| -rw-r--r-- | tests/test_client/urls.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_client/urls.py b/tests/test_client/urls.py index a7b0ed310d..ca8d5a8fc2 100644 --- a/tests/test_client/urls.py +++ b/tests/test_client/urls.py @@ -36,6 +36,6 @@ urlpatterns = [ url(r'^accounts/$', RedirectView.as_view(url='login/')), url(r'^accounts/no_trailing_slash$', RedirectView.as_view(url='login/')), - url(r'^accounts/login/$', auth_views.login, {'template_name': 'login.html'}), - url(r'^accounts/logout/$', auth_views.logout), + url(r'^accounts/login/$', auth_views.LoginView.as_view(template_name='login.html')), + url(r'^accounts/logout/$', auth_views.LogoutView.as_view()), ] |
