This commit is contained in:
Ross
2021-11-28 23:35:34 +00:00
parent 1a9413b4b5
commit e8d5b25a2a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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"):
+2 -2
View File
@@ -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'
},