Small tweak to [2395] so that it's a bit cleaner
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2397 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
76cfd74542
commit
e13ae5a645
|
@ -222,9 +222,8 @@ class AdminOptions:
|
|||
|
||||
def contribute_to_class(self, cls, name):
|
||||
cls._meta.admin = self
|
||||
|
||||
# Register the admin manager with the class as Model._admin_manager
|
||||
self.manager.contribute_to_class(cls, '_admin_manager')
|
||||
# Make sure the admin manager has access to the model
|
||||
self.manager.model = cls
|
||||
|
||||
class AdminFieldSet(object):
|
||||
def __init__(self, name, classes, field_locator_func, line_specs):
|
||||
|
|
Loading…
Reference in New Issue