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