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 == excludes:
                continue

            name = "%s__%s" % (model1.__class__.__name__.lower(), field.name)

            changes[name] = get_change(model1, model2, field,
                                       resolve_foreignkeys)

    return changes
dataset/ETHPy150Open dominno/django-moderation/moderation/diff.py/get_changes_between_models/operator `in` -> `==`