#6701: in qs-rf when many to many field referenced in order_by(), count() doesn't match length of queryset ------------------------------+--------------------------------------------- Reporter: [EMAIL PROTECTED] | Owner: nobody Status: new | Component: Uncategorized Version: queryset-refactor | Keywords: qs-rf Stage: Unreviewed | Has_patch: 0 ------------------------------+--------------------------------------------- If you include a many-to-many field which has multiple relationships for some objects you're querying in a call to order_by() then the .count() on the resulting queryset will not match the len() on the queryset if .count() is called before anything that loads the data (as if count() is called after the data is loaded then it returns the length of the data rather than doing the problematic query). I'm guessing Query.get_count() tries to run a simplified query.
-- Ticket URL: <http://code.djangoproject.com/ticket/6701> Django Code <http://code.djangoproject.com/> The web framework for perfectionists with deadlines --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
