19644 fix review comments

This commit is contained in:
Arthur 2025-06-24 10:06:05 -07:00
parent 100f08d04d
commit 3b4ca5ee48

View File

@ -41,8 +41,7 @@ class ScriptJob(JobRunner):
try:
# A script can modify multiple models so need to do an atomic lock on
# both the default database (for non ChangeLogged models) and potentially
# any other database (for ChangeLogged models) - choosing Device as
# the model to use as it has ChangeLoggingMixin
# any other database (for ChangeLogged models)
with transaction.atomic():
script.output = script.run(data, commit)
if not commit: