From e972422d71a9aff67a6f088cbf392ac87091ce5e Mon Sep 17 00:00:00 2001 From: Raffaele Salmaso Date: Sun, 18 Feb 2018 15:31:24 +0100 Subject: [PATCH] Update admin urls inclusion --- testproject/testproject/urls.py | 2 +- tests/testdata/urls.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/testproject/testproject/urls.py b/testproject/testproject/urls.py index 068fd1fc..5d5afa71 100644 --- a/testproject/testproject/urls.py +++ b/testproject/testproject/urls.py @@ -10,7 +10,7 @@ from wiki.urls import get_pattern as get_wiki_pattern admin.autodiscover() urlpatterns = [ - url(r'^admin/', include(admin.site.urls)), + url(r'^admin/', admin.site.urls), url(r'^robots.txt', lambda _: HttpResponse('User-agent: *\nDisallow: /')), ] diff --git a/tests/testdata/urls.py b/tests/testdata/urls.py index 9b1f2d07..5d42cac3 100644 --- a/tests/testdata/urls.py +++ b/tests/testdata/urls.py @@ -9,7 +9,7 @@ admin.autodiscover() urlpatterns = [ url(r'^admin/doc/', include('django.contrib.admindocs.urls')), - url(r'^admin/', include(admin.site.urls)), + url(r'^admin/', admin.site.urls), ] if settings.DEBUG: -- 2.45.2