.
This commit is contained in:
+6
-2
@@ -521,11 +521,15 @@ def create_series_findings(request):
|
|||||||
response_data = {}
|
response_data = {}
|
||||||
|
|
||||||
if request.POST.get('action') == 'post':
|
if request.POST.get('action') == 'post':
|
||||||
series = request.POST.get('series')
|
series_id = request.POST.get('series')
|
||||||
findings = request.POST.get('findings')
|
findings_ids = request.POST.get('findings')
|
||||||
description = request.POST.get('description')
|
description = request.POST.get('description')
|
||||||
annotation_json = request.POST.get('annotation_json')
|
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(
|
sf = SeriesFindings.objects.create(
|
||||||
series = series,
|
series = series,
|
||||||
findings = findings,
|
findings = findings,
|
||||||
|
|||||||
Reference in New Issue
Block a user