fix cloning
This commit is contained in:
@@ -18,6 +18,7 @@ from .models import (
|
||||
Region,
|
||||
Modality,
|
||||
QuestionType,
|
||||
Exam,
|
||||
)
|
||||
|
||||
from django.contrib.admin.widgets import FilteredSelectMultiple
|
||||
@@ -84,6 +85,11 @@ class AnatomyQuestionForm(ModelForm):
|
||||
queryset=BodyPart.objects.all(),
|
||||
)
|
||||
|
||||
self.fields["exams"] = ModelMultipleChoiceField(
|
||||
required=False,
|
||||
queryset=Exam.objects.all(),
|
||||
)
|
||||
|
||||
class Meta:
|
||||
model = AnatomyQuestion
|
||||
|
||||
|
||||
Reference in New Issue
Block a user