.
This commit is contained in:
+1
-1
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user