summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/auth/default.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt
index 196241bc07..b00da04c25 100644
--- a/docs/topics/auth/default.txt
+++ b/docs/topics/auth/default.txt
@@ -510,7 +510,7 @@ The ``login_required`` decorator
from django.contrib.auth import views as auth_views
- url(r'^accounts/login/$', auth_views.Login.as_view()),
+ url(r'^accounts/login/$', auth_views.LoginView.as_view()),
The :setting:`settings.LOGIN_URL <LOGIN_URL>` also accepts view function
names and :ref:`named URL patterns <naming-url-patterns>`. This allows you