Index: django/newforms/forms.py
===================================================================
--- django/newforms/forms.py (revision 6345)
+++ django/newforms/forms.py (working copy)
@@ -129,9 +129,6 @@
output.append(error_row % force_unicode(bf_errors))
if bf.label:
label = escape(force_unicode(bf.label))
- # Only add a colon if the label does not end in punctuation.
- if label[-1] not in ':?.!':
- label += ':'
label = bf.label_tag(label) or ''
else:
label = ''
Index: tests/modeltests/model_forms/models.py
===================================================================
--- tests/modeltests/model_forms/models.py (revision 6345)
+++ tests/modeltests/model_forms/models.py (working copy)
@@ -80,21 +80,21 @@
>>> CategoryForm = form_for_model(Category)
>>> f = CategoryForm()
>>> print f
-
Writer: | |
---|