def script_version_presave(instance, **kwargs):
    created = instance.pk is None
    if not created:
        if 'script_path' in instance.changed_fields and not skip_script(instance):
            instance.script_iteration += 1
            instance._script_upgrade = True
            instance.pk = None
dataset/ETHPy150Open wooey/Wooey/wooey/signals.py/script_version_presave/original