From 4bea1b8aa15ec222b01ec20ff7c4a20a3de1849d Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 6 Dec 2021 14:42:01 +0000 Subject: [PATCH] . --- atlas/models.py | 3 +++ atlas/templates/atlas/condition_detail.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/atlas/models.py b/atlas/models.py index aa3badbb..3821dd8f 100644 --- a/atlas/models.py +++ b/atlas/models.py @@ -125,6 +125,9 @@ class Condition(SynMixin, models.Model): def get_absolute_url(self): return reverse("atlas:condition_detail", kwargs={"pk": self.pk}) + def get_link(self): + format_html("{}", self.get_absolute_url(), self.name) + class Subspecialty(models.Model): name = models.CharField(max_length=255) diff --git a/atlas/templates/atlas/condition_detail.html b/atlas/templates/atlas/condition_detail.html index cf5a14d4..e3b01435 100755 --- a/atlas/templates/atlas/condition_detail.html +++ b/atlas/templates/atlas/condition_detail.html @@ -22,7 +22,7 @@