Ticket #11703: form_widgets_super_fix.diff

File form_widgets_super_fix.diff, 675 bytes (added by Joshua Russo, 15 years ago)

Added Super calls

  • django/forms/widgets.py

     
    139139            self.attrs = attrs.copy()
    140140        else:
    141141            self.attrs = {}
     142        super(Widget, self).__init__(attrs)
    142143
    143144    def __deepcopy__(self, memo):
    144145        obj = copy.copy(self)
     
    278279        self.attrs = {'cols': '40', 'rows': '10'}
    279280        if attrs:
    280281            self.attrs.update(attrs)
     282        super(Widget, self).__init__(self.attrs)
    281283
    282284    def render(self, name, value, attrs=None):
    283285        if value is None: value = ''
Back to Top