.
This commit is contained in:
@@ -75,8 +75,8 @@ This series is not associated with any cases.
|
|||||||
data: {
|
data: {
|
||||||
description: $('#description').val(),
|
description: $('#description').val(),
|
||||||
series: {{series.pk}},
|
series: {{series.pk}},
|
||||||
annotation_json: cornerstoneTools.globalImageIdSpecificToolStateManager.saveToolState(),
|
annotation_json: JSON.stringify(cornerstoneTools.globalImageIdSpecificToolStateManager.saveToolState()),
|
||||||
findings: $('#finding-form select[name="findings"]').find(":selected").map((i, el) => { return $(el).val() }).toArray(),
|
findings: JSON.stringfy($('#finding-form select[name="findings"]').find(":selected").map((i, el) => { return $(el).val() }).toArray()),
|
||||||
csrfmiddlewaretoken: $('input[name=csrfmiddlewaretoken]').val(),
|
csrfmiddlewaretoken: $('input[name=csrfmiddlewaretoken]').val(),
|
||||||
action: 'post'
|
action: 'post'
|
||||||
},
|
},
|
||||||
|
|||||||
+2
-2
@@ -522,9 +522,9 @@ def create_series_findings(request):
|
|||||||
|
|
||||||
if request.POST.get('action') == 'post':
|
if request.POST.get('action') == 'post':
|
||||||
series_id = request.POST.get('series')
|
series_id = request.POST.get('series')
|
||||||
findings_ids = request.POST.get('findings')
|
findings_ids = json.loads(request.POST.get('findings'))
|
||||||
description = request.POST.get('description')
|
description = request.POST.get('description')
|
||||||
annotation_json = request.POST.get('annotation_json')
|
annotation_json = json.loads(request.POST.get('annotation_json'))
|
||||||
|
|
||||||
series = Series.objects.get(pk=series_id)
|
series = Series.objects.get(pk=series_id)
|
||||||
findings = Finding.objects.filter(pk__in=findings_ids)
|
findings = Finding.objects.filter(pk__in=findings_ids)
|
||||||
|
|||||||
Reference in New Issue
Block a user