Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added release notes for auth views being reversed by name, not by path.

Refs #20532
  • Loading branch information...
commit 70d7e45eb0888f979775c997935bfee84c85d189 1 parent 9e50833
@timgraham timgraham authored
Showing with 14 additions and 3 deletions.
  1. +3 −3 docs/ref/contrib/admin/index.txt
  2. +11 −0 docs/releases/1.6.txt
6 docs/ref/contrib/admin/index.txt
@@ -2269,9 +2269,9 @@ your URLconf. Specifically, add these four patterns:
.. code-block:: python
url(r'^admin/password_reset/$', 'django.contrib.auth.views.password_reset', name='admin_password_reset'),
- (r'^admin/password_reset/done/$', 'django.contrib.auth.views.password_reset_done'),
- (r'^reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', 'django.contrib.auth.views.password_reset_confirm'),
- (r'^reset/done/$', 'django.contrib.auth.views.password_reset_complete'),
+ url(r'^admin/password_reset/done/$', 'django.contrib.auth.views.password_reset_done', name='password_reset_done'),
+ url(r'^reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$', 'django.contrib.auth.views.password_reset_confirm', name='password_reset_confirm'),
+ url(r'^reset/done/$', 'django.contrib.auth.views.password_reset_complete', name='password_reset_complete'),
(This assumes you've added the admin at ``admin/`` and requires that you put
the URLs starting with ``^admin/`` before the line that includes the admin app
11 docs/releases/1.6.txt
@@ -670,6 +670,17 @@ Miscellaneous
:meth:`django.contrib.auth.logout` which will send the
:func:`~django.contrib.auth.signals.user_logged_out` signal.
+* :ref:`Authentication views <built-in-auth-views>` are now reversed by name,
+ not their locations in ``django.contrib.auth.views``. If you are using the
+ views without a ``name``, you should update your ``urlpatterns`` to use
+ :meth:`~django.conf.urls.url` with the ``name`` parameter. For example::
+ (r'^reset/done/$', 'django.contrib.auth.views.password_reset_complete')
+ becomes::
+ url(r'^reset/done/$', 'django.contrib.auth.views.password_reset_complete', name='password_reset_complete')
Features deprecated in 1.6
Please sign in to comment.
Something went wrong with that request. Please try again.