summaryrefslogtreecommitdiff
path: root/tests/contenttypes_tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-04-01 20:46:34 -0400
committerTim Graham <timograham@gmail.com>2014-04-03 07:28:10 -0400
commitd73d0e071c1b4c86d57994a0ab55a74cfe80cdf5 (patch)
treef36eebaf1cdd8bd07503b3a538e7d875ff8d29b4 /tests/contenttypes_tests
parente6ced2bb086396b57601d04ad5b3ba347d1eb785 (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/contenttypes_tests')
-rw-r--r--tests/contenttypes_tests/urls.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/contenttypes_tests/urls.py b/tests/contenttypes_tests/urls.py
index 626b3ae8f7..bf038c93de 100644
--- a/tests/contenttypes_tests/urls.py
+++ b/tests/contenttypes_tests/urls.py
@@ -1,7 +1,8 @@
from __future__ import unicode_literals
-from django.conf.urls import patterns
+from django.conf.urls import url
+from django.contrib.contenttypes import views
-urlpatterns = patterns('',
- (r'^shortcut/(\d+)/(.*)/$', 'django.contrib.contenttypes.views.shortcut'),
-)
+urlpatterns = [
+ url(r'^shortcut/(\d+)/(.*)/$', views.shortcut),
+]