summaryrefslogtreecommitdiff
path: root/tests/auth_tests/urls_admin.py
diff options
context:
space:
mode:
authorMarten Kenbeek <marten.knbk@gmail.com>2015-05-28 17:25:52 +0200
committerTim Graham <timograham@gmail.com>2015-06-08 15:12:20 -0400
commit1e82094f1b6690018228e688303295f83e1c3d9a (patch)
treea0e209da939ebe3b64e8e38cf47a191785825da0 /tests/auth_tests/urls_admin.py
parent39937de7e60052d3ffa9f07fdbb9262aced35d61 (diff)
Fixed #21927 -- Made application and instance namespaces more distinct.
Made URL application namespaces be set in the included URLconf and instance namespaces in the call to include(). Deprecated other ways to set application and instance namespaces.
Diffstat (limited to 'tests/auth_tests/urls_admin.py')
-rw-r--r--tests/auth_tests/urls_admin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auth_tests/urls_admin.py b/tests/auth_tests/urls_admin.py
index 8d2fe3fd10..8e5b0f1f0c 100644
--- a/tests/auth_tests/urls_admin.py
+++ b/tests/auth_tests/urls_admin.py
@@ -2,7 +2,7 @@
Test URLs for auth admins.
"""
-from django.conf.urls import include, url
+from django.conf.urls import url
from django.contrib import admin
from django.contrib.auth.admin import GroupAdmin, UserAdmin
from django.contrib.auth.models import Group, User
@@ -14,5 +14,5 @@ site.register(User, UserAdmin)
site.register(Group, GroupAdmin)
urlpatterns += [
- url(r'^admin/', include(site.urls)),
+ url(r'^admin/', site.urls),
]