'Return the total cost of the cart.  If the order has been purchased, returns total of
all purchased and not refunded items.'

@property
def total_cost(self):

    return sum((i.line_cost for i in self.orderitem_set.filter(status=self.status)))
