def exclusive_fields(inmodel, except_fields=[]):
    for field, model in inmodel._meta.get_fields_with_model():
        if field.name in except_fields:
            yield field
        # Field belongs to an ancestor
        if model is not None:
            continue
        # Field relates to an ancestor
        if isinstance(field, OneToOneField) and (field.rel.to in
            inmodel.__bases__):
            continue
        yield field
Returns a generator that yields the fields that belong only to the
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/txcommon/models.py/exclusive_fields