#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            
---------------------------------+------------------------------------------
Changes (by mtredinnick):

  * status:  new => closed
  * needs_better_patch:  => 0
  * resolution:  => wontfix
  * needs_tests:  => 0
  * needs_docs:  => 0

Comment:

 Ordering by a many-to-many field doesn't make any sense, since an ordering
 on the individual rows in the m2m table doesn't map to a natural ordering
 comparing sets of m2m results on the parent model.

 get_count() strips any ordering, since it doesn't need it to count the
 items. I don't think this is worth changing because of the above
 paragraph.

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