diff --git a/django/forms/widgets.py b/django/forms/widgets.py index 1ff0d5a2714..7e3c8f3dcaa 100644 --- a/django/forms/widgets.py +++ b/django/forms/widgets.py @@ -44,10 +44,6 @@ class Media(object): for name in MEDIA_TYPES: getattr(self, 'add_' + name)(media_attrs.get(name, None)) - # Any leftover attributes must be invalid. - # if media_attrs != {}: - # raise TypeError("'class Media' has invalid attribute(s): %s" % ','.join(media_attrs.keys())) - def __str__(self): return self.render()