Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…lasses. Thanks, Brian Rosner.

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7125 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 397199c577fdf6b4a890a6d4c4e5eb010000a109 1 parent 7c1242a
@jkocherhans jkocherhans authored
Showing with 0 additions and 3 deletions.
  1. +0 −3  django/db/models/base.py
View
3  django/db/models/base.py
@@ -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)
else:
Please sign in to comment.
Something went wrong with that request. Please try again.