Ticket #15754: widgets.diff
File widgets.diff, 634 bytes (added by , 14 years ago) |
---|
-
forms/widgets.py
97 97 def media_property(cls): 98 98 def _media(self): 99 99 # Get the media property of the superclass, if it exists 100 if hasattr(super(cls, self), 'media'): 101 base = super(cls, self).media 102 else: 103 base = Media() 100 base = getattr(super(cls, self), 'media', None) or Media() 104 101 105 102 # Get the media definition for this class 106 103 definition = getattr(cls, 'Media', None)