Ticket #4958: unicode_label-5751.diff

File unicode_label-5751.diff, 702 bytes (added by Honza Král <Honza.Kral@…>, 17 years ago)

simple patch to repair the issue

  • django/contrib/admin/options.py

     
    8888        classes = []
    8989        if self.is_checkbox:
    9090            classes.append(u'vCheckboxLabel')
    91             contents = escape(self.field.label)
     91            contents = escape(force_unicode(self.field.label))
    9292        else:
    93             contents = escape(self.field.label) + u':'
     93            contents = escape(force_unicode(self.field.label)) + u':'
    9494        if self.field.field.required:
    9595            classes.append(u'required')
    9696        if not self.is_first:
Back to Top