Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Removed leftover use of deprecated AdminSite.root in admindoc.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16136 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 980455969eca41494ce997ccbcef44e4670a38b4 1 parent b49900d
Ramiro Morales authored May 01, 2011

Showing 1 changed file with 1 addition and 5 deletions. Show diff stats Hide diff stats

  1. 6  django/contrib/admindocs/views.py
6  django/contrib/admindocs/views.py
@@ -25,11 +25,7 @@ def get_root_path():
25 25
     try:
26 26
         return urlresolvers.reverse('admin:index')
27 27
     except urlresolvers.NoReverseMatch:
28  
-        from django.contrib import admin
29  
-        try:
30  
-            return urlresolvers.reverse(admin.site.root, args=[''])
31  
-        except urlresolvers.NoReverseMatch:
32  
-            return getattr(settings, "ADMIN_SITE_ROOT_URL", "/admin/")
  28
+        return getattr(settings, "ADMIN_SITE_ROOT_URL", "/admin/")
33 29
 
34 30
 def doc_index(request):
35 31
     if not utils.docutils_is_available:

0 notes on commit 9804559

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