#11789: Aggregates ignore none()
------------------------------------------+---------------------------------
 Reporter:  alexr                         |       Owner:  nobody    
   Status:  new                           |   Milestone:            
Component:  Database layer (models, ORM)  |     Version:  1.1       
 Keywords:  aggregates                    |       Stage:  Unreviewed
Has_patch:  0                             |  
------------------------------------------+---------------------------------
 {{{
 Model.objects.all().aggregate(Max('field'))
 }}}
 and
 {{{
 Model.objects.none().aggregate(Max('field'))
 }}}
 seem to return the same thing. Aggregates pay attention to filters, but
 they seem to ignore the none() method. This isn't a common use, so it
 might not be worth fixing, except for correctness.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11789>
Django <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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to