diff --git a/django/db/models/base.py b/django/db/models/base.py
index 47c6934..8aec8ed 100644
a
|
b
|
class ModelBase(type):
|
82 | 82 | return get_model(new_class._meta.app_label, name, False) |
83 | 83 | |
84 | 84 | def add_to_class(cls, name, value): |
85 | | if name == 'Admin': |
86 | | assert type(value) == types.ClassType, "%r attribute of %s model must be a class, not a %s object" % (name, cls.__name__, type(value)) |
87 | | value = AdminOptions(**dict([(k, v) for k, v in value.__dict__.items() if not k.startswith('_')])) |
88 | 85 | if hasattr(value, 'contribute_to_class'): |
89 | 86 | value.contribute_to_class(cls, name) |
90 | 87 | else: |