> You forgot to set the prefix here, so the form that the user is
> submitting their data from doesn't have the fields named correctly. You
> need to set it up exactly the same way at this point as you did in the
> POST path, with the exception of not prepopulating with data.

Thanks, the missing prefix was indeed one issue, although
prepopulating with data is not a problem. It didn't solve the problem
though. The problem arises from the fact that I'm rendering multiple
forms, but the user is POSTing back only one form. Each form has it's
own submit field. How do I know which form was submitted? I've tried
stripping the prefix from the subitted form, but that felt kind of
hacky (and didn't really work).

> Also, you've almost certainly left off an "else" clause here. You only
> want to create new, empty forms if the method is not POST (you can fall
> through to this point with request.method == "POST" and one of the forms
> being invalid).

You are absolutely right, I added that. Thanks.

2B
--~--~---------~--~----~------------~-------~--~----~
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