On Mon, 2009-03-23 at 06:50 -0700, Jari Pennanen wrote: > Found out that it doesn't work. > > I think this should be documented that backwards relationships does > *not* work in select_related, since I see no reason why it couldn't > work, it might be tricky to implement, but I think it should be > doable.
Seriously, if we documented everything that wasn't possible with Django, the documentation would be a couple of million words long. There's nothing that says select_related() does work with reverse relations and if people are going to make assumptions, that's their problem. > > If it were documented, someone might get idea to improve django and > make patch for it... It is documented in that respect. In a couple of different Trac tickets (since there are multiple issues: select related for reverse one-to-one, which only isn't in 1.1-beta because I ran out of time to fix the patch, and select-related for multi-valued relations). Regards, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---