Ticket #5794: widgetpatch.diff
File widgetpatch.diff, 585 bytes (added by , 17 years ago) |
---|
-
newforms/widgets.py
161 161 self.format = format 162 162 163 163 def render(self, name, value, attrs=None): 164 if value is not None: 165 value = value.strftime(self.format) 164 166 return super(DateTimeInput, self).render(name, 165 value .strftime(self.format), attrs)167 value, attrs) 166 168 167 169 class CheckboxInput(Widget): 168 170 def __init__(self, attrs=None, check_test=bool):