Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
  • Loading branch information...
commit 8540731dc43ca96ec6ef331a9e5c2ba7ff16ff71 1 parent 5adfae3
Gary Wilson Jr. gdub authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  docs/newforms.txt
2  docs/newforms.txt
View
@@ -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 %}
Please sign in to comment.
Something went wrong with that request. Please try again.