class CartItem(models.Model):
    cart = models.ForeignKey(Cart)
item = models.ForeignKey(Supplier)
quantity = models.IntegerField(default=0)

@property
def total_cost(self):
    return self.quantity * self.item.retail_price

def __unicode__(self):
    pass
Умножить в шаблоне django