manytomany manager and get_query_set

2009-09-02 Thread bnl
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): ...

Re: looping over forms in a formset

2009-08-11 Thread bnl
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

Re: looping over forms in a formset

2009-08-11 Thread bnl
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

Re: looping over forms in a formset

2009-08-10 Thread bnl
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

looping over forms in a formset

2009-08-10 Thread bnl
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

Getting at the fields querysets of a form in a formset

2009-08-04 Thread bnl
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 '''