thanks yeah i think it's the only way...
On May 27, 7:27 pm, "Richard Dahl" <[EMAIL PROTECTED]> wrote:
> You can do this with an intermediate table:
>
> class Fruit(models.Model):
> name = models.CharField()
>
> def __unicode__(self):
> return ('%s' % (self.name))
>
> class Fr
You can do this with an intermediate table:
class Fruit(models.Model):
name = models.CharField()
def __unicode__(self):
return ('%s' % (self.name))
class FruitItem(models.Model):
fruit = models.ForeignKey(Fruit)
number = models.IntegerField()
def __unicode__(self):
2 matches
Mail list logo