On Mon, 2009-05-11 at 17:31 -0700, Glen Jarvis wrote:
> Both forms have a 'name' attribute. And, both forms are in a template
> together. (I mean that both form instances are created for the
> specific instance of the model in question, and are displayed together
> (very interleaved) in a template). The response that I get back, via
> request.POST instantiates both forms: 
> 
> form1 = Form1(request.POST, instance=blah1) form2 =
> Form2(request.POST, instance=blah2) 
> 
> [Note I'm translating this from a domain specific problem to generic
> (form1, form2, etc.) on the fly. There's room for error] 
> 
> Now, if request.POST has only one 'name' then form1 and form2 are
> getting the same name, obviously causing a problem.

You're looking for form prefix:

http://docs.djangoproject.com/en/1.0/ref/forms/api/#django.forms.Form.prefix

sdc



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

Reply via email to