On 05/14/2011 05:04 PM, Greg Donald wrote:
I have a "new" contact form.  If I post it, and it has error, I found
(while debugging, not documented that I can find) that I can redraw
the submitted form data using form.name.data like this:

<input type="text" name="name" value="{{ form.name.data }}" />
<snip>

The problem is that you're doing this at all. You should instead be using {{ form.name }} to put the field in the form.

This will work in either case.

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to