Fixed #25481 -- Added field.help_text to "Looping over a form's fields" docs.
This commit is contained in:
parent
3f342d74e9
commit
ac09d22f79
1
AUTHORS
1
AUTHORS
|
@ -353,6 +353,7 @@ answer newbie questions, and generally made Django that much better:
|
|||
john@calixto.net
|
||||
John D'Agostino <john.dagostino@gmail.com>
|
||||
John Huddleston <huddlej@wwu.edu>
|
||||
John Moses <moses.john.r@gmail.com>
|
||||
John Paulett <john@paulett.org>
|
||||
John Shaffer <jshaffer2112@gmail.com>
|
||||
Jökull Sólberg Auðunsson <jokullsolberg@gmail.com>
|
||||
|
|
|
@ -631,6 +631,9 @@ loop:
|
|||
<div class="fieldWrapper">
|
||||
{{ field.errors }}
|
||||
{{ field.label_tag }} {{ field }}
|
||||
{% if field.help_text %}
|
||||
<p class="help">{{ field.help_text|safe }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue