mirror of https://github.com/django/django.git
Removed some commented code in the forms Media class.
This commit is contained in:
parent
01b4a13db4
commit
984a57a9c9
|
@ -44,10 +44,6 @@ class Media(object):
|
||||||
for name in MEDIA_TYPES:
|
for name in MEDIA_TYPES:
|
||||||
getattr(self, 'add_' + name)(media_attrs.get(name, None))
|
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):
|
def __str__(self):
|
||||||
return self.render()
|
return self.render()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue