def get_total(self, **kwargs):
    zero = Price(0, currency=settings.DEFAULT_CURRENCY)
    cost_iterator = (total_with_shipping for (shipping, shipping_cost, total_with_shipping) in self.get_deliveries(**kwargs))
    total = sum(cost_iterator, zero)
    return total
def get_total(self, **kwargs):
    zero = Price(0, currency=settings.DEFAULT_CURRENCY)
    cost_iterator = (total_with_shipping for (shipping, shipping_cost, total_with_shipping) in self.get_deliveries(**kwargs))
    total = sum(cost_iterator, zero)
    return total