def merge_baskets(self, anonymous_basket, basket):
        basket.merge(anonymous_basket)
        anonymous_basket.delete()
Hook to enforce rules when merging baskets.
dataset/ETHPy150Open django-oscar/django-oscar-api/oscarapi/views/login.py/LoginView.merge_baskets