Ticket #3344: 4700-UnicodeEncodeError-newforms.diff

File 4700-UnicodeEncodeError-newforms.diff, 762 bytes (added by boxed@…, 17 years ago)

smaller fix that does not needlessly convert to/from ascii

  • django/newforms/forms.py

     
    126126                    help_text = help_text_html % field.help_text
    127127                else:
    128128                    help_text = u''
    129                 output.append(normal_row % {'errors': bf_errors, 'label': label, 'field': unicode(bf), 'help_text': help_text})
     129
     130                output.append(normal_row % {'errors': unicode(bf_errors), 'label': unicode(label), 'field': unicode(bf), 'help_text': help_text})
    130131        if top_errors:
    131132            output.insert(0, error_row % top_errors)
    132133        if hidden_fields: # Insert any hidden fields in the last row.
Back to Top