mirror of https://github.com/django/django.git
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
|
@ -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…
Reference in New Issue