just remember that a form instance is completely unaware of the model.
So in your view you'll want to create a form instance for your list
and a form instance for a list item (you can either work on the form
instances now in the view to provide unique names for each input or in
the template later
I'm in a situation where I have a List model class and a ListItem
model class. The ListItem class has a ForeignKey to the List class
with `edit_inline=models.STACKED, num_in_admin=10`. In the admin
interface for adding a new List, this is represented perfectly: it
shows the fields for the List obj
2 matches
Mail list logo