mirror of
https://github.com/django/django.git
synced 2025-09-29 05:24:55 +00:00
Fixed #6164 -- field.label_tag
already displays the label so don't display it again. Thanks, arien.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6907 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
5adfae3062
commit
8540731dc4
1 changed files with 1 additions and 1 deletions
|
@ -763,7 +763,7 @@ label of each required field::
|
|||
<form method="post" action="">
|
||||
<dl>
|
||||
{% for field in form %}
|
||||
<dt>{{ field.label_tag }}{{ field.label }}{% if field.field.required %}*{% endif %}</dt>
|
||||
<dt>{{ field.label_tag }}{% if field.field.required %}*{% endif %}</dt>
|
||||
<dd>{{ field }}</dd>
|
||||
{% if field.help_text %}<dd>{{ field.help_text }}</dd>{% endif %}
|
||||
{% if field.errors %}<dd class="myerrors">{{ field.errors }}</dd>{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue