Fabio Natali wrote: > Fabio Natali wrote: > [...] >> class Prod2(models.Model): >> name = models.CharField(max_length=30) >> >> class Prod1(models.Model): >> name = models.CharField(max_length=30) >> belongs_to = models.ForeignKey(Prod2) >> >> class Prod0(models.Model): >> name = models.CharField(max_length=30) >> belongs_to = models.ForeignKey(Prod2) > > That's obviously: > belongs_to = models.ForeignKey(Prod1) > >> price = models.DecimalField(max_digits=10, decimal_places=2) >> #...some more details... >> >> class Purchase(models.Model): >> product = models.ForeignKey(Prod0) >> amount = models.DecimalField(max_digits=10, decimal_places=2) >> #...some more details... > > Sorry for the typo, bye, Fabio. >
Have you tried filter_horizontal? http://docs.djangoproject.com/en/dev/ref/contrib/admin/#filter-horizontal /L --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---