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:
Jacob Kaplan-Moss 2006-02-25 19:54:32 +00:00
parent 76cfd74542
commit e13ae5a645
1 changed files with 2 additions and 3 deletions

View File

@ -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):