Re: problems with model formsets

2009-07-10 Thread Michael Stevens
I worked it out in the end - I had two formsets in the same form, and hadn't realised the need for the prefix option to separate them. 2009/7/10 Karen Tracey : > On Thu, Jul 9, 2009 at 12:01 PM, Michael Stevens > wrote: >> >> Hi. >> >> I'm trying to use a model formset. >> >> I've successfully g

Re: problems with model formsets

2009-07-09 Thread Karen Tracey
On Thu, Jul 9, 2009 at 12:01 PM, Michael Stevens wrote: > > Hi. > > I'm trying to use a model formset. > > I've successfully got it rendering data from the database and showing > it on a form to edit, but I'm now trying to recreate the data in save. > > So I've got: >FooFormset = modelform

problems with model formsets

2009-07-09 Thread Michael Stevens
Hi. I'm trying to use a model formset. I've successfully got it rendering data from the database and showing it on a form to edit, but I'm now trying to recreate the data in save. So I've got: FooFormset = modelformset_factory(Foo exclude = ['id', 'foo']) foo_formset = FooFormse