Skip to content
Browse files

newforms-admin: Removed a bit of code that snuck by in [7935] that sh…

…ouldn't have been committed yet.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 075a2fd commit c546b55a9898861b8aed20d5c0ba6da16f7b22dd @brosner brosner committed Jul 16, 2008
Showing with 0 additions and 4 deletions.
  1. +0 −4 django/db/models/
4 django/db/models/
@@ -137,10 +137,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':
- 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)

0 comments on commit c546b55

Please sign in to comment.
Something went wrong with that request. Please try again.