Ticket #11703: form_widgets_super_fix.diff
File form_widgets_super_fix.diff, 675 bytes (added by , 15 years ago) |
---|
-
django/forms/widgets.py
139 139 self.attrs = attrs.copy() 140 140 else: 141 141 self.attrs = {} 142 super(Widget, self).__init__(attrs) 142 143 143 144 def __deepcopy__(self, memo): 144 145 obj = copy.copy(self) … … 278 279 self.attrs = {'cols': '40', 'rows': '10'} 279 280 if attrs: 280 281 self.attrs.update(attrs) 282 super(Widget, self).__init__(self.attrs) 281 283 282 284 def render(self, name, value, attrs=None): 283 285 if value is None: value = ''