#14030: Use F() objects in aggregates(), annotates() and values()
---------------------------+------------------------------------------------
 Reporter:  delfick        |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  1.2       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 Hello,

 Would it be possible to be able to use F() objects in aggregate queries ?
 (and others such as annotate() and values())

 So I can do something like
 myModel.objects.aggregate(Sum(F('field1') - F('field2')))

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14030>
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 [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