Wednesday, July 30, 2014

Re: simultaneously submit three forms on the same page

Please stop replying directly to me - I am subscribed to the list,
this is how we started talking, I do not need an additional copy in my
inbox.

On Wed, Jul 30, 2014 at 10:29 AM, Devin Cky <vin100jo@gmail.com> wrote:
>
>
>
> I tried it .. but it is only the first form ( {{ emet_form.as_p }} )
> that is saved..
>
>
> <form action="{%url 'formulaire.views.enregistrer'%}" method="post"> {%
> csrf_token %}
> {{ emet_form.as_p }}
> {{ des_form.as_p }}
> {{ fich_form.as_p }}
> <input type="submit" value="record" />
> </form>
>

So, why is it only the first form that is saved? What happens in your
view that causes only the first form to be saved?

Add debug logging and find out.

Cheers

Tom

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFHbX1KBmf0LJ7QATfBBOpK0aSN-hzn4VqN4vz%2BZR6WFBfiG7w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment