Calculate with agregates and save on table field on django

前端 未结 0 1771
天命终不由人
天命终不由人 2020-12-12 18:24

How to calculate the total of invoice using sum annotate or agregate instead of forloop and save the value on field invoice.total

class Invoice(models.Model):         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题