Skip to content
Browse files

Removed leftover use of deprecated AdminSite.root in admindoc.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent b49900d commit 980455969eca41494ce997ccbcef44e4670a38b4 @ramiro ramiro committed
Showing with 1 addition and 5 deletions.
  1. +1 −5 django/contrib/admindocs/
6 django/contrib/admindocs/
@@ -25,11 +25,7 @@ def get_root_path():
return urlresolvers.reverse('admin:index')
except urlresolvers.NoReverseMatch:
- from django.contrib import admin
- try:
- return urlresolvers.reverse(, args=[''])
- except urlresolvers.NoReverseMatch:
- return getattr(settings, "ADMIN_SITE_ROOT_URL", "/admin/")
+ return getattr(settings, "ADMIN_SITE_ROOT_URL", "/admin/")
def doc_index(request):
if not utils.docutils_is_available:

0 comments on commit 9804559

Please sign in to comment.
Something went wrong with that request. Please try again.