From bf428b3849420f64747a1056c12309a35a16cb0d Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 20 Oct 2021 18:09:27 +0100 Subject: [PATCH] . --- anatomy/forms.py | 14 +++++++------- rad/urls.py | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/anatomy/forms.py b/anatomy/forms.py index 9769c492..61f1e114 100644 --- a/anatomy/forms.py +++ b/anatomy/forms.py @@ -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, diff --git a/rad/urls.py b/rad/urls.py index 7eea2e14..10306c96 100644 --- a/rad/urls.py +++ b/rad/urls.py @@ -77,7 +77,7 @@ urlpatterns = [ path('tinymce/', include('tinymce.urls')), - path('select2/', include('select2.urls')), + #path('select2/', include('select2.urls')), ]