#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:  closed             |            Component:  Uncategorized
    Version:  queryset-refactor  |           Resolution:  wontfix      
   Keywords:  qs-rf              |                Stage:  Unreviewed   
  Has_patch:  0                  |           Needs_docs:  0            
Needs_tests:  0                  |   Needs_better_patch:  0            
---------------------------------+------------------------------------------
Comment (by mtredinnick):

 It doesn't make sense mathematically. This isn't a personal preference
 thing. It's the fact that you cannot order an SQL query based on multiple
 results. You're trying to turn an ordering on individual items into an
 ordering on sets of those items and there's no canonical way to do this.
 The fact that the results you get are somewhat aligned with what you are
 hoping for is accidental and not at all guaranteed in general.

 At some point, Django will raise an error when you try to specify such a
 field in an ordering clause; it just doesn't do so yet.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/6701#comment:3>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to