def from_request(self, request):
        """Get the order from the session

        Returns:
        - Order object
        """
        order = None
        if request.session in 'orderID':
            try:
                order = Order.objects.get(id=request.session['orderID'])
                # TODO: Validate against logged-in user.
            except Order.DoesNotExist:
                pass

            if not order:
                del request.session['orderID']

        if not order:
            raise Order.DoesNotExist()

        return order
dataset/ETHPy150Open dokterbob/satchmo/satchmo/apps/satchmo_store/shop/models.py/OrderManager.from_request/swapped operands of `in`