Ticket #7620: widgets.diff

File widgets.diff, 685 bytes (added by Christian Tanzer <tanzer@…>, 16 years ago)
  • django/newforms/widgets.py

     
    120120class MediaDefiningClass(type):
    121121    "Metaclass for classes that can have media definitions"
    122122    def __new__(cls, name, bases, attrs):           
    123         new_class = type.__new__(cls, name, bases, attrs)
     123        new_class = super(MediaDefiningClass, cls).__new__(cls, name, bases,
     124                                                           attrs)
    124125        if 'media' not in attrs:
    125126            new_class.media = media_property(new_class)
    126127        return new_class
Back to Top