mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
newforms: Added BoundField.data property
git-svn-id: http://code.djangoproject.com/svn/django/trunk@4143 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -1268,6 +1268,11 @@ u''
|
||||
<input type="text" name="first_name" value="John" />
|
||||
<input type="text" name="last_name" value="Lennon" />
|
||||
<input type="text" name="birthday" value="1940-10-9" />
|
||||
>>> for boundfield in p:
|
||||
... print boundfield.verbose_name, boundfield.data
|
||||
First name John
|
||||
Last name Lennon
|
||||
Birthday 1940-10-9
|
||||
>>> print p
|
||||
<tr><td>First name:</td><td><input type="text" name="first_name" value="John" /></td></tr>
|
||||
<tr><td>Last name:</td><td><input type="text" name="last_name" value="Lennon" /></td></tr>
|
||||
|
||||
Reference in New Issue
Block a user