阅读背景:

创建一个字段,其值是其他字段值的计算

来源:互联网 
class PO(models.Model)
    qty = models.IntegerField(null=True)
    cost = models.IntegerField(null=True)
    total = qty * cost
class PO(models.Model)
    qty = models.Integer



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: