Changes between Initial Version and Version 1 of Ticket #28940
- Timestamp:
- Dec 18, 2017, 3:58:10 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28940 – Description
initial v1 10 10 11 11 Model.objects.extra(select={'total': 'select sum(field) from model'}) 12 13 And I also need to use this value in annotation, but it is not possible now :( 14 15 .annotate(q=F('field')/F('total')) 16 17 How can I do this?