This commit is contained in:
Ross
2020-12-27 18:17:02 +00:00
parent 1bdf7c1c3a
commit a34c07fe85
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ class AnatomyQuestionForm(ModelForm):
queryset=BodyPart.objects.all(),
)
self.fields["exams"] = ModelMultipleChoiceField(
self.fields["exams"] = ModelChoiceField(
required=False,
queryset=Exam.objects.all(),
)
@@ -23,7 +23,7 @@
Description: {{ question.description }}
</div>
<div>
Examinations: {% for exam in question.exams.all %}
Exams: {% for exam in question.exams.all %}
<a href="{% url 'anatomy:exam_overview' pk=exam.pk %}">{{ exam.name }}</a>
{% endfor %}
</div>