.
This commit is contained in:
+5
-5
@@ -86,13 +86,13 @@ class AnatomyQuestionForm(ModelForm):
|
||||
queryset=Modality.objects.all(),
|
||||
)
|
||||
|
||||
self.fields["structure"] = ModelChoiceField(
|
||||
required=False,
|
||||
queryset=Structure.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:struture-autocomplete')
|
||||
widget=autocomplete.ModelSelect2(url='anatomy:structure-autocomplete')
|
||||
)
|
||||
|
||||
self.fields["examination"] = ModelChoiceField(
|
||||
|
||||
Reference in New Issue
Block a user