Ticket #11701: dateinput_ugettext_enabled.diff
File dateinput_ugettext_enabled.diff, 506 bytes (added by , 15 years ago) |
---|
-
django/forms/widgets.py
299 299 return '' 300 300 elif hasattr(value, 'strftime'): 301 301 value = datetime_safe.new_date(value) 302 return value.strftime( self.format)302 return value.strftime(force_unicode(self.format)) 303 303 return value 304 304 305 305 def render(self, name, value, attrs=None):