[testrail-bot]Add button to delete run
Updated icon for Save button
PRODX-35932
Change-Id: I36fd436979ac99ed09687a8184bc7493917a5fe6
diff --git a/testrail_bot/control/views.py b/testrail_bot/control/views.py
index 9077a7c..13344f5 100644
--- a/testrail_bot/control/views.py
+++ b/testrail_bot/control/views.py
@@ -88,6 +88,12 @@
return redirect("single_report", report.id)
+def delete_run(request, run_id):
+ run = models.TestRailTestRun.objects.get(pk=run_id)
+ run.delete()
+ return redirect("index")
+
+
def show_help(request):
return render(request, "control/help.html")