class One(models.Model):
image = models.ImageField(upload_to=\"images\")
summary = models.TextField()
def __unicode__(self):
return self.summary
rather simple:
Your model is "broken", three can have only 1 One and 1 Two.
you can have a list of three for both One an Two entities.
If you reverse the foreign keys, change the models they are on (both pointing @ Three)
class OneToThreeInline(admin.StackedInline):
fk_name = 'three'
model = One
class TwoToThreeInline(admin.StackedInline):
fk_name = 'three'
model = Two