#14030: Use F() objects in aggregates(), annotates() and values()
--------------------------------------+-------------------------------------
          Reporter:  delfick          |         Owner:     
            Status:  new              |     Milestone:     
         Component:  ORM aggregation  |       Version:  1.2
        Resolution:                   |      Keywords:     
             Stage:  Accepted         |     Has_patch:  0  
        Needs_docs:  0                |   Needs_tests:  0  
Needs_better_patch:  0                |  
--------------------------------------+-------------------------------------
Changes (by russellm):

  * stage:  Unreviewed => Accepted

Comment:

 No reason it shouldn't be *possible*, but there's the minor issue of
 implementing it :-)

 There's a related problem hidden in this; annotating extra columns that
 aren't aggregates. Although the example here is trying to get the
 aggregate sum of field1-field2, you might also want to annotate
 field1-field2 as an extra column on a model. This sort of computed column
 requires the same sort of internal mechanics, except that it would result
 in an extra alias, rather than being buried in a SUM clause.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14030#comment:2>
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-upda...@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