summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorGary Wilson Jr <gary.wilson@gmail.com>2007-12-11 04:44:48 +0000
committerGary Wilson Jr <gary.wilson@gmail.com>2007-12-11 04:44:48 +0000
commit8540731dc43ca96ec6ef331a9e5c2ba7ff16ff71 (patch)
treea5b8505c7c038de7e9380bec0fed74558bba93c8 /docs
parent5adfae3062158d8329ee81b08fccf15adae2b762 (diff)
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
Diffstat (limited to 'docs')
-rw-r--r--docs/newforms.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/newforms.txt b/docs/newforms.txt
index ac2cfb1f72..19f42cb2ee 100644
--- a/docs/newforms.txt
+++ b/docs/newforms.txt
@@ -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 %}