1
0
mirror of https://github.com/django/django.git synced 2025-10-28 16:16:12 +00:00

[1.7.x] Fixed #24097 -- Prevented AttributeError in redirect_to_login

Thanks Peter Schmidt for the report and the initial patch.
Thanks to Oktay Sancak for writing the original failing test and
Alvin Savoy for supporting contributing back to the community.
Backport of d7bc37d61 from master.
This commit is contained in:
Claude Paroz
2015-01-09 22:18:34 +01:00
parent bbcbacf0ad
commit 7e65876b7c
6 changed files with 50 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
from django.conf.urls import patterns
from django.conf.urls import patterns, url
from django.contrib.auth import views
urlpatterns = patterns('',
(r'^accounts/logout/$', 'django.contrib.auth.views.logout')
url(r'^accounts/logout/$', views.logout, name='logout'),
)