.
This commit is contained in:
+2
-11
@@ -86,15 +86,6 @@ class AnatomyQuestionForm(ModelForm):
|
||||
queryset=Modality.objects.all(),
|
||||
)
|
||||
|
||||
#self.fields["Structure"] = ModelChoiceField(
|
||||
# required=False,
|
||||
# queryset=Structure.objects.all(),
|
||||
#)
|
||||
#self.fields["structure"] = ModelChoiceField(
|
||||
# queryset=Structure.objects.all(),
|
||||
# widget=autocomplete.ModelSelect2(url='anatomy:structure-autocomplete')
|
||||
#)
|
||||
|
||||
self.fields["examination"] = ModelChoiceField(
|
||||
required=False,
|
||||
queryset=Examination.objects.all(),
|
||||
@@ -148,7 +139,7 @@ class AnatomyQuestionForm(ModelForm):
|
||||
"image",
|
||||
"region",
|
||||
"modality",
|
||||
"structure",
|
||||
#"structure",
|
||||
"examination",
|
||||
"body_part",
|
||||
"description",
|
||||
@@ -156,7 +147,7 @@ class AnatomyQuestionForm(ModelForm):
|
||||
]
|
||||
|
||||
widgets = {
|
||||
"structure" : autocomplete.ModelSelect2(url='anatomy:structure-autocomplete')
|
||||
#"structure" : autocomplete.ModelSelect2(url='anatomy:structure-autocomplete')
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user