Ticket #13823: root_path.diff

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

Changed the root of the diff to django's default

  • django/contrib/admin/sites.py

     
    3939    password_change_template = None
    4040    password_change_done_template = None
    4141
     42    @property
     43    def root_path(self):
     44        return reverse('admin:index')
     45
    4246    def __init__(self, name=None, app_name='admin'):
    4347        self._registry = {} # model_class class -> admin_class instance
    44         self.root_path = None
    4548        if name is None:
    4649            self.name = 'admin'
    4750        else:
Back to Top