I need to get aggregated value of two columns. So first multiple them together and then get theirs sum()
. Code below naturally does not work, it is just for clarification.
Is it somehow possible or should I use raw SQL?
SomeModel.objects
.filter(**something)
.aggregate(Sum('one_column' * 'another_col'))