def clear_storage(self):
    try:
        del self.request.session[STORAGE_SESSION_KEY]
    except KeyError:
        pass
    self.cart.clear()
def clear_storage(self):
    try:
        del self.request.session[STORAGE_SESSION_KEY]
    except KeyError:
        pass
    self.cart.clear()