def reload_basket(self): """ After basket updates, we need to reload the basket to ensure everything is up to date. """ self.request.basket = get_model('basket', 'Basket').objects.get(id=self.request.basket.id) self.request.basket.strategy = self.request.strategy apply_offers_on_basket(self.request, self.request.basket)
def apply_offers_to_basket(self, request, basket): apply_offers_on_basket(request, basket)