Changes between Initial Version and Version 1 of Ticket #28940


Ignore:
Timestamp:
Dec 18, 2017, 3:58:10 PM (7 years ago)
Author:
Vasiliy Maryutenkov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28940 – Description

    initial v1  
    1010
    1111Model.objects.extra(select={'total': 'select sum(field) from model'})
     12
     13And I also need to use this value in annotation, but it is not possible now :(
     14
     15.annotate(q=F('field')/F('total'))
     16
     17How can I do this?
Back to Top