From 1e82094f1b6690018228e688303295f83e1c3d9a Mon Sep 17 00:00:00 2001 From: Marten Kenbeek Date: Thu, 28 May 2015 17:25:52 +0200 Subject: 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. --- tests/auth_tests/urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/auth_tests/urls.py') diff --git a/tests/auth_tests/urls.py b/tests/auth_tests/urls.py index 3c4dc6b12b..2851b451e1 100644 --- a/tests/auth_tests/urls.py +++ b/tests/auth_tests/urls.py @@ -1,4 +1,4 @@ -from django.conf.urls import include, url +from django.conf.urls import url from django.contrib import admin from django.contrib.auth import views from django.contrib.auth.decorators import login_required @@ -97,5 +97,5 @@ urlpatterns = auth_urlpatterns + [ url(r'^userpage/(.+)/$', userpage, name="userpage"), # This line is only required to render the password reset with is_admin=True - url(r'^admin/', include(admin.site.urls)), + url(r'^admin/', admin.site.urls), ] -- cgit v1.2.1