summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTimo Graham <timograham@gmail.com>2011-11-21 23:33:39 +0000
committerTimo Graham <timograham@gmail.com>2011-11-21 23:33:39 +0000
commitf2d02647fa8274c303a079191918e45d0b122472 (patch)
tree2b66a86c4ba8dbcdd0e2b806de8846b5f16ebf8a /docs
parent16e3636a1a99c0987d8cfb266c3584fedb763992 (diff)
Fixed #16851 - Added how-to access form field value in template; thanks yasar11732 for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17138 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/forms/index.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/topics/forms/index.txt b/docs/topics/forms/index.txt
index c5d33f0e54..18e55f5eb6 100644
--- a/docs/topics/forms/index.txt
+++ b/docs/topics/forms/index.txt
@@ -294,6 +294,9 @@ templates:
The field's label wrapped in the appropriate HTML ``<label>`` tag,
e.g. ``<label for="id_email">Email address</label>``
+``{{ field.value }}``
+ The value of the field. e.g ``someone@example.com``
+
``{{ field.html_name }}``
The name of the field that will be used in the input element's name
field. This takes the form prefix into account, if it has been set.