mirror of
https://github.com/django/django.git
synced 2025-07-04 01:39:20 +00:00
newforms-admin: Removed a bit of code that snuck by in [7935] that shouldn't have been committed yet.
git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7936 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
075a2fd938
commit
c546b55a98
@ -137,10 +137,6 @@ class ModelBase(type):
|
|||||||
return get_model(new_class._meta.app_label, name, False)
|
return get_model(new_class._meta.app_label, name, False)
|
||||||
|
|
||||||
def add_to_class(cls, name, value):
|
def add_to_class(cls, name, value):
|
||||||
if name == 'Admin':
|
|
||||||
import warnings
|
|
||||||
warnings.warn("The inner Admin class for %s is no longer supported. "
|
|
||||||
"Please use a ModelAdmin instead." % cls.__name__)
|
|
||||||
if hasattr(value, 'contribute_to_class'):
|
if hasattr(value, 'contribute_to_class'):
|
||||||
value.contribute_to_class(cls, name)
|
value.contribute_to_class(cls, name)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user