.
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ class ExaminationForm(ModelForm):
|
|||||||
class SeriesFindingsForm(ModelForm):
|
class SeriesFindingsForm(ModelForm):
|
||||||
class Meta:
|
class Meta:
|
||||||
model = SeriesFindings
|
model = SeriesFindings
|
||||||
exclude = [""]
|
exclude = ["series", "annotation_json"]
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
if kwargs.get("series_id"):
|
if kwargs.get("series_id"):
|
||||||
|
|||||||
@@ -64,9 +64,9 @@ This series is not associated with any cases.
|
|||||||
url: '{% url "atlas:add_finding" %}',
|
url: '{% url "atlas:add_finding" %}',
|
||||||
data: {
|
data: {
|
||||||
description: $('#description').val(),
|
description: $('#description').val(),
|
||||||
series: $('#finding-form select[name="series"]').find(":selected").val(),
|
series: {{series.pk}},
|
||||||
annotation_json: cornerstoneTools.globalImageIdSpecificToolStateManager.saveToolState(),
|
annotation_json: cornerstoneTools.globalImageIdSpecificToolStateManager.saveToolState(),
|
||||||
findings: $('#finding-form select[name="findings"]').find(":selected").val(),
|
findings: $('#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'
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user