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
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
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
3 matches
Mail list logo