Permalink
Browse files

newforms-admin: Fixed #7620 -- Changed a hard-coded call to type.__ne…

…w__ to use super in MediaDefiningClass metaclass. Thanks Christian Tanzer.

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7834 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 7dd2666 commit 058a190a792fd1ffc5b0f9c522ce805ea58d655b @brosner brosner committed Jul 3, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 django/newforms/widgets.py
@@ -120,7 +120,8 @@ def _media(self):
class MediaDefiningClass(type):
"Metaclass for classes that can have media definitions"
def __new__(cls, name, bases, attrs):
- new_class = type.__new__(cls, name, bases, attrs)
+ new_class = super(MediaDefiningClass, cls).__new__(cls, name, bases,
+ attrs)
if 'media' not in attrs:
new_class.media = media_property(new_class)
return new_class

0 comments on commit 058a190

Please sign in to comment.