1👍
You could use the QuerySet.extra
method:
UserBet.objects.filter(result = 1).extra({'winnings':'odds * coins'})...
Source:stackexchange.com
1👍
You could use the QuerySet.extra
method:
UserBet.objects.filter(result = 1).extra({'winnings':'odds * coins'})...