mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-23 04:22:01 -06:00
19644 fix review comments
This commit is contained in:
parent
100f08d04d
commit
3b4ca5ee48
@ -41,8 +41,7 @@ class ScriptJob(JobRunner):
|
|||||||
try:
|
try:
|
||||||
# A script can modify multiple models so need to do an atomic lock on
|
# A script can modify multiple models so need to do an atomic lock on
|
||||||
# both the default database (for non ChangeLogged models) and potentially
|
# both the default database (for non ChangeLogged models) and potentially
|
||||||
# any other database (for ChangeLogged models) - choosing Device as
|
# any other database (for ChangeLogged models)
|
||||||
# the model to use as it has ChangeLoggingMixin
|
|
||||||
with transaction.atomic():
|
with transaction.atomic():
|
||||||
script.output = script.run(data, commit)
|
script.output = script.run(data, commit)
|
||||||
if not commit:
|
if not commit:
|
||||||
|
Loading…
Reference in New Issue
Block a user