From 984a57a9c9cba44fde61e21c08996dc678f13e81 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 27 Oct 2014 08:21:37 -0400 Subject: [PATCH] Removed some commented code in the forms Media class. --- django/forms/widgets.py | 4 ---- 1 file changed, 4 deletions(-) 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()