Kaydet (Commit) a918f8b0 authored tarafından Tim Graham's avatar Tim Graham

Documented that forms.Field.help_text isn't HTML-escaped.

üst 93506162
...@@ -223,6 +223,9 @@ The ``help_text`` argument lets you specify descriptive text for this ...@@ -223,6 +223,9 @@ The ``help_text`` argument lets you specify descriptive text for this
``Field`` when the ``Field`` is rendered by one of the convenience ``Form`` ``Field`` when the ``Field`` is rendered by one of the convenience ``Form``
methods (e.g., ``as_ul()``). 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 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:: fields. We've specified ``auto_id=False`` to simplify the output::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment