Commits

adr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed 3f982f4

newforms: Fixed Unicode issue on Python 2.3 when a BoundField's __unicode__() included non-ASCII characters. Thanks for reporting the error, Johannes Froehlich

  • Participants
  • Parent commits 6750308

Comments (0)

Files changed (1)

File django/newforms/forms.py

                 if errors_on_separate_row and bf_errors:
                     output.append(error_row % bf_errors)
                 label = bf.label and bf.label_tag(escape(bf.label + ':')) or ''
-                output.append(normal_row % {'errors': bf_errors, 'label': label, 'field': bf})
+                output.append(normal_row % {'errors': bf_errors, 'label': label, 'field': unicode(bf)})
         if top_errors:
             output.insert(0, error_row % top_errors)
         if hidden_fields: # Insert any hidden fields in the last row.