Ticket #3698: newforms_labling.patch
File newforms_labling.patch, 916 bytes (added by , 18 years ago) |
---|
-
django/newforms/forms.py
121 121 else: 122 122 if errors_on_separate_row and bf_errors: 123 123 output.append(error_row % bf_errors) 124 label = bf.label and bf.label_tag(escape(bf.label + ':')) or '' 124 if bf.label: 125 label = escape(bf.label) 126 if label[-1] not in ':?.!': 127 # Only add a colon if the label does not end in punctuation. 128 label += ':' 129 label = bf.label_tag(label) or '' 130 else: 131 label = '' 125 132 if field.help_text: 126 133 help_text = help_text_html % field.help_text 127 134 else: