diff options
| author | Tim Graham <timograham@gmail.com> | 2014-04-01 20:46:34 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-04-03 07:28:10 -0400 |
| commit | d73d0e071c1b4c86d57994a0ab55a74cfe80cdf5 (patch) | |
| tree | f36eebaf1cdd8bd07503b3a538e7d875ff8d29b4 /tests/resolve_url | |
| parent | e6ced2bb086396b57601d04ad5b3ba347d1eb785 (diff) | |
Fixed #22218 -- Deprecated django.conf.urls.patterns.
Thanks Carl Meyer for the suggestion and Alex Gaynor and Carl for reviews.
Diffstat (limited to 'tests/resolve_url')
| -rw-r--r-- | tests/resolve_url/urls.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/resolve_url/urls.py b/tests/resolve_url/urls.py index f03ac1a412..eb3720a503 100644 --- a/tests/resolve_url/urls.py +++ b/tests/resolve_url/urls.py @@ -1,6 +1,6 @@ -from django.conf.urls import patterns +from django.conf.urls import url +from django.contrib.auth import views - -urlpatterns = patterns('', - (r'^accounts/logout/$', 'django.contrib.auth.views.logout') -) +urlpatterns = [ + url(r'^accounts/logout/$', views.logout), +] |
