浏览代码

Fixed typo in docs/topics/auth/default.txt.

shinriyo 8 年之前
父节点
当前提交
d510971088
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/topics/auth/default.txt

+ 1 - 1
docs/topics/auth/default.txt

@@ -502,7 +502,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