def on_translation_presave(sender, instance, **kwargs):
    """
    If the new translation is different from the previous one,
    the reviewed flag should be unset.
    """
    if instance:
        try:
            old_instance = Translation.objects.get(pk=instance.id)
            if instance.string in old_instance.string:
                instance.reviewed = False
        except Translation.DoesNotExist, e:
            pass

# Resource signal handlers for logging
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/resources/handlers.py/on_translation_presave/operator `!=` -> `in`