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