Code

Ticket #13823: root_path.diff

File root_path.diff, 625 bytes (added by jacmkno, 4 years ago)

Changed the root of the diff to django's default

Line 
1Index: django/contrib/admin/sites.py
2===================================================================
3--- django/contrib/admin/sites.py       (revisión: 13569)
4+++ django/contrib/admin/sites.py       (copia de trabajo)
5@@ -39,9 +39,12 @@
6     password_change_template = None
7     password_change_done_template = None
8 
9+    @property
10+    def root_path(self):
11+        return reverse('admin:index')
12+
13     def __init__(self, name=None, app_name='admin'):
14         self._registry = {} # model_class class -> admin_class instance
15-        self.root_path = None
16         if name is None:
17             self.name = 'admin'
18         else: