Simplified AdminSite self.name attribute initialization.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16576 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
ff9a666753
commit
f90449321b
|
@ -39,11 +39,8 @@ class AdminSite(object):
|
|||
password_change_template = None
|
||||
password_change_done_template = None
|
||||
|
||||
def __init__(self, name=None, app_name='admin'):
|
||||
def __init__(self, name='admin', app_name='admin'):
|
||||
self._registry = {} # model_class class -> admin_class instance
|
||||
if name is None:
|
||||
self.name = 'admin'
|
||||
else:
|
||||
self.name = name
|
||||
self.app_name = app_name
|
||||
self._actions = {'delete_selected': actions.delete_selected}
|
||||
|
|
Loading…
Reference in New Issue