summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2015-11-24 10:12:42 -0500
committerTim Graham <timograham@gmail.com>2015-11-24 10:17:36 -0500
commit7fccc6e8faa511ed2d620671f2375da56d79f23d (patch)
treedd6391f3dc2f31d0ba9e5e9f0822372777996570
parentc7d1a96658a117d9861ed4d5654ea89251316e08 (diff)
[1.9.x] Documented that forms.Field.help_text isn't HTML-escaped.
Backport of a918f8b089a1d702c50c44742f433f3a546e0aa2 from master
-rw-r--r--docs/ref/forms/fields.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
index 4f978ebe30..b0273cb5f7 100644
--- a/docs/ref/forms/fields.txt
+++ b/docs/ref/forms/fields.txt
@@ -225,6 +225,9 @@ The ``help_text`` argument lets you specify descriptive text for this
``Field`` when the ``Field`` is rendered by one of the convenience ``Form``
methods (e.g., ``as_ul()``).
+Like the model field's :attr:`~django.db.models.Field.help_text`, this value
+isn't HTML-escaped in automatically-generated forms.
+
Here's a full example ``Form`` that implements ``help_text`` for two of its
fields. We've specified ``auto_id=False`` to simplify the output::