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