fix a bug that prevents deletion of workflow approval records

see: https://github.com/ansible/awx/issues/8305
This commit is contained in:
Ryan Petrello
2020-10-01 16:06:53 -04:00
parent 796a61da86
commit 64485c1066

View File

@@ -776,6 +776,10 @@ class WorkflowApproval(UnifiedJob, JobNotificationMixin):
self.send_approval_notification('running')
return can_start
@property
def event_processing_finished(self):
return True
def send_approval_notification(self, approval_status):
from awx.main.tasks import send_notifications # avoid circular import
if self.workflow_job_template is None: