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