Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Simplified AdminSite self.name attribute initialization.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@16576 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit f90449321b8cf69f567db49f81102751992fb7de 1 parent ff9a666
@ramiro ramiro authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 django/contrib/admin/sites.py
View
7 django/contrib/admin/sites.py
@@ -39,12 +39,9 @@ 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.name = name
self.app_name = app_name
self._actions = {'delete_selected': actions.delete_selected}
self._global_actions = self._actions.copy()
Please sign in to comment.
Something went wrong with that request. Please try again.