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):
|
def contribute_to_class(self, cls, name):
|
||||||
cls._meta.admin = self
|
cls._meta.admin = self
|
||||||
|
# Make sure the admin manager has access to the model
|
||||||
# Register the admin manager with the class as Model._admin_manager
|
self.manager.model = cls
|
||||||
self.manager.contribute_to_class(cls, '_admin_manager')
|
|
||||||
|
|
||||||
class AdminFieldSet(object):
|
class AdminFieldSet(object):
|
||||||
def __init__(self, name, classes, field_locator_func, line_specs):
|
def __init__(self, name, classes, field_locator_func, line_specs):
|
||||||
|
|
Loading…
Reference in New Issue