Trying to do a calculation on django models

前端 未结 0 1506
逝去的感伤
逝去的感伤 2020-12-08 12:45

i have two integer fields that i want to divide to get the value of 3rd field. @property def Pallets_Count(self): return self.CASES/self.CasesPerPallet

but the resul

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