Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Updated docs/topics/forms/index.txt about BoundField.field attribute. #685

Closed
wants to merge 1 commit into from

2 participants

Tiberiu Ana Tim Graham
Tiberiu Ana

No description provided.

Tim Graham
Owner

Made some tweaks and merged this, thank-you!

Tim Graham timgraham closed this February 02, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. 6  docs/topics/forms/index.txt
6  docs/topics/forms/index.txt
@@ -345,6 +345,12 @@ attributes, which can be useful in your templates:
345 345
            {# Do something special #}
346 346
         {% endif %}
347 347
 
  348
+``field.field``
  349
+    The original forms.Field instance, as added to the form class, that 
  350
+    this BoundField wraps. You can use it to gain access to additional 
  351
+    attributes programatically added to the Field when creating the form,
  352
+    e.g. ``{{ field.field.my_custom_attribute }}``
  353
+
348 354
 Looping over hidden and visible fields
349 355
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
350 356
 
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.