gt; them - yes, despite the massive hint in the error message ... :-(
>
> > I think the hidden field in question was in fact the id of the
> > instance (which exists for the previously saved objects) and was zero
> > for a "blank" form in the formset ... and I think this o
nce I didn't loop over them, and didn't think of
> them - yes, despite the massive hint in the error message ... :-(
>
> I think the hidden field in question was in fact the id of the
> instance (which exists for the previously saved objects) and was zero
> for a "bla
in the error message ... :-(
I think the hidden field in question was in fact the id of the
instance (which exists for the previously saved objects) and was zero
for a "blank" form in the formset ... and I think this only shows up
as an issue when looping over forms in a formset, because
On Tue, 2009-08-11 at 01:12 -0700, bnl wrote:
[...]
> Apologies that I'm not asking my questions in the way you'd like,
> but believe me, I am cutting it down a lot ... and I appreciate that
> it's still not obvious where the errors are (I would have found
> them otherwise). In this case, I had cu
Hi Malcolm
Thanks for looking in at this. There is some magic aura about this
group.
Both times I've posted to it, I've found other folks solutions that I
could
not find before I finally, in desperation, post ... and then magically
they
appear ... (In this case, I finally found the combination of
On Mon, 2009-08-10 at 08:59 -0700, bnl 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
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 wrote:
> hi folks
>
> I have a formset, which I want to display using a customised t
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 wi
8 matches
Mail list logo