No one any comment on this?
is this the expected behavior?

Hinnack

>reply to message:
>date: 12.03.2010 10:56:08
>from: "Henrik Genssen" <henrik.gens...@miadi.net>
>to: "Django users" <django-users@googlegroups.com>
>subject: possible bug or feature request with extra and where
>
>HI all,
>
>I have a query:
>
>results = table1.objects.select_related('table2')
>
>plus adding some filter on it. Now I want to add en extra WHERE. So I do:
>where = 'asdf=12'
>results = results.extra(where=[where])
>
>Now if I do a count() on that queryset, all related tables are omitted, that 
>are not needed by the filter function for performance reason.
>But I want to reference such a table in my extra.
>The docs say: do not use the table property...
>
>My workaround for this is: add a (stupid) filter for the related table, I need.
>Now is there a way to force select_related tables any way in a count?
>
>regards
>
>Hinnack
>
>-- 
>You received this message because you are subscribed to the Google Groups 
>"Django users" group.
>To post to this group, send email to django-us...@googlegroups.com.
>To unsubscribe from this group, send email to 
>django-users+unsubscr...@googlegroups.com.
>For more options, visit this group at 
>http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to