def is_rel_field(name,model):
    if hasattr(name,'split') and name.find("__")>0:
        parts = name.split("__")
        if model._meta.get_all_field_names() in parts[0]:
            return True
    return False
dataset/ETHPy150Open sshwsfc/xadmin/xadmin/util.py/is_rel_field/swapped operands of `in`