Ticket #7620: widgets.diff
File widgets.diff, 685 bytes (added by , 16 years ago) |
---|
-
django/newforms/widgets.py
120 120 class MediaDefiningClass(type): 121 121 "Metaclass for classes that can have media definitions" 122 122 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) 124 125 if 'media' not in attrs: 125 126 new_class.media = media_property(new_class) 126 127 return new_class