Re: ManyToManyField, add custom column

2008-05-28 Thread Vladimir
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

Re: ManyToManyField, add custom column

2008-05-27 Thread Richard Dahl
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):