

def get_changes_between_models(model1, model2, excludes=[], resolve_foreignkeys=False):
    changes = {
        
    }
    for field in model1._meta.fields:
        if (not isinstance(field, fields.AutoField)):
            if (field.name in excludes):
                continue
            name = ('%s__%s' % (model1.__class__.__name__.lower(), field.name))
            changes[name] = get_change(model1, model2, model1, resolve_foreignkeys)
    return changes

dataset/ETHPy150Open dominno/django-moderation/moderation/diff.py get_changes_between_models/VarMisuse@101/128 `field`->`model1`