mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-10 01:28: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)
|
@receiver(pre_delete)
|
||||||
def handle_deleted_object(sender, instance, **kwargs):
|
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
|
# 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
|
# to queueing any events for the object being deleted, in case a validation error is
|
||||||
# raised, causing the deletion to fail.
|
# raised, causing the deletion to fail.
|
||||||
|
@ -1195,7 +1195,6 @@ class ScriptResultView(TableMixin, generic.ObjectView):
|
|||||||
tests = job.data['tests']
|
tests = job.data['tests']
|
||||||
|
|
||||||
for log in job.data['log']:
|
for log in job.data['log']:
|
||||||
print(log)
|
|
||||||
index += 1
|
index += 1
|
||||||
result = {
|
result = {
|
||||||
'index': index,
|
'index': index,
|
||||||
|
Loading…
Reference in New Issue
Block a user