Re: select_related() including a distant many_to_many

2008-02-23 Thread Malcolm Tredinnick
On Sat, 2008-02-23 at 15:22 -0800, Lee Hinde wrote: > Hi; > > For an app that describes Wine Competitions, I have a model that > includes: > > class Awardswon(models.Model): > competition = models.ForeignKey(Competition, > verbose_name="Competition") > wine = models.ForeignKey(Wine, ver

select_related() including a distant many_to_many

2008-02-23 Thread Lee Hinde
Hi; For an app that describes Wine Competitions, I have a model that includes: class Awardswon(models.Model): competition = models.ForeignKey(Competition, verbose_name="Competition") wine = models.ForeignKey(Wine, verbose_name="Wine") awardname = models.ForeignKey(Awardname, verbose_