Ticket #15754: widgets.diff

File widgets.diff, 634 bytes (added by sakkada, 14 years ago)
  • forms/widgets.py

     
    9797def media_property(cls):
    9898    def _media(self):
    9999        # 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()
    104101
    105102        # Get the media definition for this class
    106103        definition = getattr(cls, 'Media', None)
Back to Top