summaryrefslogtreecommitdiff
path: root/django/newforms/widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/newforms/widgets.py')
-rw-r--r--django/newforms/widgets.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/newforms/widgets.py b/django/newforms/widgets.py
index bce428ddbe..e266fe4e1e 100644
--- a/django/newforms/widgets.py
+++ b/django/newforms/widgets.py
@@ -120,7 +120,8 @@ def media_property(cls):
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