.
This commit is contained in:
+7
-7
@@ -86,13 +86,13 @@ class AnatomyQuestionForm(ModelForm):
|
|||||||
queryset=Modality.objects.all(),
|
queryset=Modality.objects.all(),
|
||||||
)
|
)
|
||||||
|
|
||||||
#self.fields["structure"] = ModelChoiceField(
|
self.fields["structure"] = ModelChoiceField(
|
||||||
# required=False,
|
required=False,
|
||||||
# queryset=Structure.objects.all(),
|
queryset=Structure.objects.all(),
|
||||||
#)
|
)
|
||||||
self.fields["structure"] =select2.fields.ChoiceField(
|
#self.fields["structure"] =select2.fields.ChoiceField(
|
||||||
choices=Structure.objects.all(),
|
#choices=Structure.objects.all(),
|
||||||
overlay="Choose an author...")
|
#overlay="Choose an author...")
|
||||||
|
|
||||||
self.fields["examination"] = ModelChoiceField(
|
self.fields["examination"] = ModelChoiceField(
|
||||||
required=False,
|
required=False,
|
||||||
|
|||||||
+1
-1
@@ -77,7 +77,7 @@ urlpatterns = [
|
|||||||
|
|
||||||
path('tinymce/', include('tinymce.urls')),
|
path('tinymce/', include('tinymce.urls')),
|
||||||
|
|
||||||
path('select2/', include('select2.urls')),
|
#path('select2/', include('select2.urls')),
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user