1
0
mirror of https://github.com/django/django.git synced 2025-06-05 11:39:13 +00:00

Changed forms unit tests to reflect the fact that render() does not use the to_python() value of data

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3946 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-10-28 20:59:23 +00:00
parent 88a2f53b85
commit bcba29fcd6

View File

@ -389,12 +389,12 @@ u''
>>> print p['last_name'] >>> print p['last_name']
<input type="text" name="last_name" value="Lennon" /> <input type="text" name="last_name" value="Lennon" />
>>> print p['birthday'] >>> print p['birthday']
<input type="text" name="birthday" value="1940-10-09" /> <input type="text" name="birthday" value="1940-10-9" />
>>> for boundfield in p: >>> for boundfield in p:
... print boundfield ... print boundfield
<input type="text" name="first_name" value="John" /> <input type="text" name="first_name" value="John" />
<input type="text" name="last_name" value="Lennon" /> <input type="text" name="last_name" value="Lennon" />
<input type="text" name="birthday" value="1940-10-09" /> <input type="text" name="birthday" value="1940-10-9" />
>>> p = Person({'last_name': u'Lennon'}) >>> p = Person({'last_name': u'Lennon'})
>>> p.errors() >>> p.errors()