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