.
This commit is contained in:
@@ -146,6 +146,9 @@ class AnatomyQuestion(QuestionBase):
|
|||||||
a.answer, exams, self.modality, self.structure
|
a.answer, exams, self.modality, self.structure
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def get_link(self):
|
||||||
|
return format_html("<a href='{}'>{}</a>", self.get_absolute_url(), self)
|
||||||
|
|
||||||
def get_absolute_url(self):
|
def get_absolute_url(self):
|
||||||
return reverse("anatomy:question_detail", kwargs={"pk": self.pk})
|
return reverse("anatomy:question_detail", kwargs={"pk": self.pk})
|
||||||
|
|
||||||
|
|||||||
@@ -36,6 +36,16 @@
|
|||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if examination.anatomyquestion_set.all %}
|
||||||
|
<h4>Associated Anatomy Questions</h4>
|
||||||
|
<ul>
|
||||||
|
|
||||||
|
{% for question in examination.anatomyquestion_set.all %}
|
||||||
|
<li>{{question.get_link}}</li>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<details><summary>Merge</summary>
|
<details><summary>Merge</summary>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user