Re: select_related() and child rows

2007-05-22 Thread hartshorne
I think it's reasonable for Django to leave this one up to the framework user. Thanks! Beau On May 21, 10:12 pm, simonbun <[EMAIL PROTECTED]> wrote: > As far as i know, select_related doesn't work across reverse > relationships. Sometimes it's possible to just query the base model to > achieve

Re: select_related() and child rows

2007-05-21 Thread simonbun
As far as i know, select_related doesn't work across reverse relationships. Sometimes it's possible to just query the base model to achieve the same results, but not always. Maybe its a good feature for the query.py rewrite, but i'm thinking it could get ugly pretty fast. It would require a new

select_related() and child rows

2007-05-21 Thread Beau Hartshorne
I've got some models that look something like this: class Entry(models.Model): text = models.TextField() class SubEntry(models.Model): text = models.TextField() sub_entry = models.ForeignKey(Entry) class SubSubEntry(models.Model): text = models.TextField() sub_sub_entry =