Ticket #17556: media_inherit.diff
File media_inherit.diff, 664 bytes (added by , 13 years ago) |
---|
-
django/forms/widgets.py
8 8 import datetime 9 9 from itertools import chain 10 10 from urlparse import urljoin 11 from inspect import getmembers 11 12 12 13 from django.conf import settings 13 14 from django.forms.util import flatatt, to_current_timezone … … 32 33 class Media(StrAndUnicode): 33 34 def __init__(self, media=None, **kwargs): 34 35 if media: 35 media_attrs = media.__dict__36 media_attrs = dict(getmembers(media)) 36 37 else: 37 38 media_attrs = kwargs 38 39