Why I didn't find this before? It seems Paul had the same problem, and
one has to loop
over the hidden fields in each form ...

 {% for hid in form.hidden_fields %} {{hid}}{% endfor %}




On Aug 10, 4:59 pm, bnl <bryannlawre...@googlemail.com> wrote:
> hi folks
>
> I have a formset, which I want to display using a customised template
> for the forms.
>
> This works:
>
> {{formset.mangement_form}}
> {% for form in formset.forms %}
>   {{form}}
> {% endfor %}
>
> The following displays ok, let's me edit one form, but then I can't
> update it or add another, failling with a muMultiValueDictKeyError
> at ....
> "Key 'form-0-id' not found in <QueryDict: .... (this with django 1.1,
> 1.0 blew up with a keyerror).
>
> {{formset.management_forms}}
> {% for form in formset.forms %}
> {{form.title.errors}}{{form.title}}
> etc looping over the fields in a nice way ...
> {% endfor %}
>
> Looking at the posted form in an editor, I see the following (with
> django 1.0) in the form that works:
> <input type="hidden" name="form-0-id" value="1" id="id_form-0-id" />
> and
> <input type="hidden" name="form-0-id" id="id_form-0-id" />
> in the one that doesn't.
>
> Any idea what I'm doing wrong? need to do?
--~--~---------~--~----~------------~-------~--~----~
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