summaryrefslogtreecommitdiff
path: root/patchwork/urls.py
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2017-05-18 21:17:40 +0100
committerStephen Finucane <stephen@that.guru>2017-05-18 21:17:40 +0100
commitc265e0fd9588030ab8bcff1e4f27be941511aca4 (patch)
tree84959bca9834b6e8d13266d81e61430016a5c724 /patchwork/urls.py
parent8289734350a4358e0dd9f5833c3fbde7acd70d54 (diff)
downloadpatchwork-c265e0fd9588030ab8bcff1e4f27be941511aca4.tar
patchwork-c265e0fd9588030ab8bcff1e4f27be941511aca4.tar.gz
urls: Don't "include" admin URLs
This raises a warning in Django 1.9 and will cause an error in Django 2.0. Per the documentation [1] it is not even necessary so it can simply be removed. This resolves all issues with Django 1.9. [1] https://docs.djangoproject.com/en/1.11/ref/contrib/admin/\ #hooking-adminsite-instances-into-your-urlconf Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to 'patchwork/urls.py')
-rw-r--r--patchwork/urls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/patchwork/urls.py b/patchwork/urls.py
index f700f38..1871c9a 100644
--- a/patchwork/urls.py
+++ b/patchwork/urls.py
@@ -40,7 +40,7 @@ from patchwork.views import xmlrpc as xmlrpc_views
admin.autodiscover()
urlpatterns = [
- url(r'^admin/', include(admin.site.urls)),
+ url(r'^admin/', admin.site.urls),
url(r'^$', project_views.project_list, name='project-list'),
url(r'^project/(?P<project_id>[^/]+)/list/$', patch_views.patch_list,