add suggested answers to anatomy
This commit is contained in:
@@ -7,6 +7,8 @@ from django.forms import (
|
||||
CharField,
|
||||
)
|
||||
from django.forms import inlineformset_factory
|
||||
from django.contrib.postgres.forms import SimpleArrayField, SplitArrayField , SplitArrayWidget
|
||||
|
||||
|
||||
from generic.forms import ExamAuthorFormMixin, ExamFormMixin
|
||||
|
||||
@@ -102,6 +104,8 @@ class AnatomyQuestionForm(ModelForm):
|
||||
queryset=BodyPart.objects.all(),
|
||||
)
|
||||
|
||||
self.fields["answer_suggest_incorrect"] = CharField(max_length=255, required=False)
|
||||
|
||||
if self.user.groups.filter(name="anatomy_checker").exists():
|
||||
exam_queryset = Exam.objects.all()
|
||||
else:
|
||||
@@ -142,6 +146,7 @@ class AnatomyQuestionForm(ModelForm):
|
||||
"question_type",
|
||||
"image",
|
||||
"answer_help",
|
||||
"answer_suggest_incorrect",
|
||||
"region",
|
||||
"modality",
|
||||
"structure",
|
||||
|
||||
Reference in New Issue
Block a user