Ticket #5749: 5749.patch
File 5749.patch, 1.0 KB (added by , 17 years ago) |
---|
-
django/newforms/forms.py
141 141 help_text = help_text_html % force_unicode(field.help_text) 142 142 else: 143 143 help_text = u'' 144 output.append(normal_row % {'errors': force_unicode(bf_errors), 'label': force_unicode(label), 'field': unicode(bf), 'help_text': help_text}) 144 output.append(normal_row % {'errors': force_unicode(bf_errors), 145 'label': force_unicode(label), 146 'field': unicode(bf), 147 'help_text': help_text, 148 'field_name': self.add_prefix(name)}) 145 149 if top_errors: 146 150 output.insert(0, error_row % top_errors) 147 151 if hidden_fields: # Insert any hidden fields in the last row.