Author: brosner
Date: 2008-07-16 14:22:44 -0500 (Wed, 16 Jul 2008)
New Revision: 7936
Modified:
django/branches/newforms-admin/django/db/models/base.py
Log:
newforms-admin: Removed a bit of code that snuck by in [7935] that shouldn't
have been committed yet.
Modified: django/branches/newforms-admin/django/db/models/base.py
===================================================================
--- django/branches/newforms-admin/django/db/models/base.py 2008-07-16
19:21:15 UTC (rev 7935)
+++ django/branches/newforms-admin/django/db/models/base.py 2008-07-16
19:22:44 UTC (rev 7936)
@@ -137,10 +137,6 @@
return get_model(new_class._meta.app_label, name, False)
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'):
value.contribute_to_class(cls, name)
else:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---