1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Move ObjectChange creation into signal receivers

This commit is contained in:
Jeremy Stretch
2020-08-14 17:03:45 -04:00
parent b4299241fe
commit 4ee8e473eb
6 changed files with 89 additions and 141 deletions

View File

@ -23,7 +23,6 @@ from ipam.validators import MaxPrefixLengthValidator, MinPrefixLengthValidator,
from utilities.exceptions import AbortTransaction
from utilities.forms import DynamicModelChoiceField, DynamicModelMultipleChoiceField
from .forms import ScriptForm
from .signals import purge_changelog
__all__ = [
'BaseScript',
@ -465,7 +464,6 @@ def run_script(data, request, commit=True, *args, **kwargs):
if not commit:
# Delete all pending changelog entries
purge_changelog.send(Script)
script.log_info(
"Database changes have been reverted automatically."
)