This commit is contained in:
Ross
2023-07-03 11:16:32 +01:00
parent 6b5c3f8914
commit f458dc1306
2 changed files with 13 additions and 0 deletions
+3
View File
@@ -146,6 +146,9 @@ class AnatomyQuestion(QuestionBase):
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):
return reverse("anatomy:question_detail", kwargs={"pk": self.pk})