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