Browse files

newforms-admin: Fixed #6614. Removed some code related to old Admin c…

…lasses. Thanks, Brian Rosner.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 7c1242a commit 397199c577fdf6b4a890a6d4c4e5eb010000a109 @jkocherhans jkocherhans committed Feb 17, 2008
Showing with 0 additions and 3 deletions.
  1. +0 −3 django/db/models/
@@ -82,9 +82,6 @@ def __new__(cls, name, bases, attrs):
return get_model(new_class._meta.app_label, name, False)
def add_to_class(cls, name, value):
- if name == 'Admin':
- assert type(value) == types.ClassType, "%r attribute of %s model must be a class, not a %s object" % (name, cls.__name__, type(value))
- value = AdminOptions(**dict([(k, v) for k, v in value.__dict__.items() if not k.startswith('_')]))
if hasattr(value, 'contribute_to_class'):
value.contribute_to_class(cls, name)

0 comments on commit 397199c

Please sign in to comment.