Re: Inlining a reverse foreign key relationship in django admin

2011-01-12 Thread Daniel Roseman
On Thursday, January 13, 2011 12:51:35 AM UTC, Viktor Kojouharov wrote: > > Hi, > > Consider the following models: > > class Foo(models.Model): >name = models.CharField(max_length=100) > > class Bar(models.Model): >name = models.CharField(max_length=100) >city = models.ForeignKey(Foo) >

Inlining a reverse foreign key relationship in django admin

2011-01-12 Thread Viktor Kojouharov
Hi, Consider the following models: class Foo(models.Model): name = models.CharField(max_length=100) class Bar(models.Model): name = models.CharField(max_length=100) city = models.ForeignKey(Foo) How can I inline the admin model form for Foo into Bar, so that I can add new Foo items if