Re: Semantics when calling select_related repeatedly

2011-09-20 Thread Carl Meyer
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/20/2011 10:29 AM, Jeremy Dunck wrote: > Currently, calling select_related causes the QS to forget previously > added fields. Also, it seems that depth calls are not forgotten. > > For example, cribbing from the tests here: > https://code.djan

Re: Semantics when calling select_related repeatedly

2011-09-20 Thread Javier Guerra Giraldez
On Tue, Sep 20, 2011 at 11:29 AM, Jeremy Dunck wrote: > It seems to me that calling .select_related should be additive +1 -- Javier -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@g

Semantics when calling select_related repeatedly

2011-09-20 Thread Jeremy Dunck
Currently, calling select_related causes the QS to forget previously added fields. Also, it seems that depth calls are not forgotten. For example, cribbing from the tests here: https://code.djangoproject.com/browser/django/trunk/tests/modeltests/select_related/tests.py#L129 If this: Species.obj