class PO(models.Model) qty = models.IntegerField(null=True) cost = models.IntegerField(null=True) total = qty * cost
How will I solve <
Justin Hamades answer
class PO(models.Model) qty = models.IntegerField(null=True) cost = models.IntegerField(null=True) @property def total(self): return self.qty * self.cost