20465 fix script re-upload

This commit is contained in:
Arthur
2025-11-06 17:01:55 -08:00
parent fdf4fe4263
commit 6367530581

View File

@@ -79,8 +79,8 @@ class ScriptFileForm(ManagedFileForm):
pass pass
# Save the new file and capture the actual filename # Save the new file and capture the actual filename
actual_filename = storage.save(filename, data) self.instance.file_path = filename
self.instance.file_path = actual_filename storage.save(filename, data)
# need to skip ManagedFileForm save method # need to skip ManagedFileForm save method
return super(ManagedFileForm, self).save(*args, **kwargs) return super(ManagedFileForm, self).save(*args, **kwargs)