mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 00:58:16 -06:00
Addressed PR comments
This commit is contained in:
parent
2b3f2b1147
commit
2caa4131e8
@ -118,7 +118,9 @@ def handle_changed_object(sender, instance, **kwargs):
|
||||
|
||||
@receiver(pre_delete)
|
||||
def handle_deleted_object(sender, instance, **kwargs):
|
||||
"""Fires when an object is deleted."""
|
||||
"""
|
||||
Fires when an object is deleted.
|
||||
"""
|
||||
# Run any deletion protection rules for the object. Note that this must occur prior
|
||||
# to queueing any events for the object being deleted, in case a validation error is
|
||||
# raised, causing the deletion to fail.
|
||||
|
@ -1195,7 +1195,6 @@ class ScriptResultView(TableMixin, generic.ObjectView):
|
||||
tests = job.data['tests']
|
||||
|
||||
for log in job.data['log']:
|
||||
print(log)
|
||||
index += 1
|
||||
result = {
|
||||
'index': index,
|
||||
|
Loading…
Reference in New Issue
Block a user