hi Folks
I have a model which has in it some stuff that looks like:
class Simulation(models.Model):
...
boundaryCondition=models.ManyToManyField
('SimCoupling',blank=True,null=True)
...
class Coupling(models.Model):
...
class SimCoupling(models.Model):
...
Thanks.
Before I suggest anything concrete for the docs, let's see if my
understanding is now right:
The problem from my point of view was that I didn't think I had any
hidden fields. Hence I didn't loop over them, and didn't think of
them - yes, despite the massive hint in the error message
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
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 formse
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
Hi Folks
I'm trying to move up from a complex form based on a model declaration
to a model formset built on the same idea.
I have a model which has some stuff that looks something like
class Vocab(models.Model):
''' Holds the values of a choice list aka vocabulary '''
6 matches
Mail list logo