Re: Inline formset when pk doesn't exist

2010-07-26 Thread cerberos
I've managed to solve my problem. view item_form = ItemForm() ImageFormSet = formset_factory(ImageForm) image_formset = ImageFormSet() template (I'm using uni_form in the template but it's no different) {{ image_formset.management_form }} {{ item_form|as

Inline formset when pk doesn't exist

2010-07-26 Thread cerberos
I have 2 models class Item(models.Model): fields here class ItemImage(models.Model): item = models.ForeignKey('Item', null=True, blank=True, related_name='images') I want a single 'form' where a user can add an Item and an ItemImage (actually many images but that's irrele