From 27efcbf2c5e575507d6b8cfbe79ec93c6397d6c1 Mon Sep 17 00:00:00 2001 From: Ross Date: Sun, 28 Nov 2021 23:46:36 +0000 Subject: [PATCH] . --- atlas/views.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/atlas/views.py b/atlas/views.py index 0768702d..a5f520ca 100755 --- a/atlas/views.py +++ b/atlas/views.py @@ -521,11 +521,15 @@ def create_series_findings(request): response_data = {} if request.POST.get('action') == 'post': - series = request.POST.get('series') - findings = request.POST.get('findings') + series_id = request.POST.get('series') + findings_ids = request.POST.get('findings') description = request.POST.get('description') annotation_json = request.POST.get('annotation_json') + series = Series.objects.get(pk=series_id) + findings = Finding.objects.filter(pk__in=findings_ids) + + sf = SeriesFindings.objects.create( series = series, findings = findings,