def _assert_field_in_model(model_cls, column):
    assert column in [field.name for field in model_cls._meta.fields]
dataset/ETHPy150Open dimagi/commcare-hq/corehq/util/queries.py/_assert_field_in_model/original