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(), queryset=BodyPart.objects.all(),
) )
self.fields["exams"] = ModelMultipleChoiceField( self.fields["exams"] = ModelChoiceField(
required=False, required=False,
queryset=Exam.objects.all(), queryset=Exam.objects.all(),
) )
@@ -23,7 +23,7 @@
Description: {{ question.description }} Description: {{ question.description }}
</div> </div>
<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> <a href="{% url 'anatomy:exam_overview' pk=exam.pk %}">{{ exam.name }}</a>
{% endfor %} {% endfor %}
</div> </div>