def isUserManager(request, slug):
    try:
        fw = FormsWorkspace.objects.get(slug=slug)
        ao = get_allowed_objects(request.user, FormsWorkspace, 'manager')
        if ao in fw.pk:
            return fw
        else:
            return False
    except:
        return False
dataset/ETHPy150Open zorna/zorna/zorna/forms/api.py/isUserManager/swapped operands of `in`