Addressed PR comments

This commit is contained in:
Julio-Oliveira-Encora 2024-06-04 14:23:24 -03:00
parent 2b3f2b1147
commit 2caa4131e8
2 changed files with 3 additions and 2 deletions

View File

@ -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.

View File

@ -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,