From 8676318d2dae9a570d2314e4e6da8c00aaf2e2a0 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 26 Jul 2013 14:43:46 -0400 Subject: Fixed #20805 -- Removed an extra colon beside checkboxes in the admin. Thanks CollinAnderson for the report. --- docs/ref/forms/api.txt | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'docs/ref/forms') diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt index 7c1601d3ea..780cb5d4f7 100644 --- a/docs/ref/forms/api.txt +++ b/docs/ref/forms/api.txt @@ -527,6 +527,11 @@ Note that the label suffix is added only if the last character of the label isn't a punctuation character (in English, those are ``.``, ``!``, ``?`` or ``:``). +.. versionadded:: 1.6 + +You can also customize the ``label_suffix`` on a per-field basis using the +``label_suffix`` parameter to :meth:`~django.forms.BoundField.label_tag`. + Notes on field ordering ~~~~~~~~~~~~~~~~~~~~~~~ @@ -653,7 +658,7 @@ when printed:: >>> str(f['subject'].errors) '' -.. method:: BoundField.label_tag(contents=None, attrs=None) +.. method:: BoundField.label_tag(contents=None, attrs=None, label_suffix=None) To separately render the label tag of a form field, you can call its ``label_tag`` method:: @@ -671,6 +676,14 @@ additional attributes for the ``