Ticket #11701: dateinput_ugettext_enabled.diff

File dateinput_ugettext_enabled.diff, 506 bytes (added by carsten, 15 years ago)
  • django/forms/widgets.py

     
    299299            return ''
    300300        elif hasattr(value, 'strftime'):
    301301            value = datetime_safe.new_date(value)
    302             return value.strftime(self.format)
     302            return value.strftime(force_unicode(self.format))
    303303        return value
    304304
    305305    def render(self, name, value, attrs=None):
Back to Top