From c50fd80c58cf303cdebc713e31155de32884200a Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 6 Dec 2021 13:12:25 +0000 Subject: [PATCH] . --- atlas/models.py | 2 +- atlas/tables.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/atlas/models.py b/atlas/models.py index 5da73c99..aa3badbb 100644 --- a/atlas/models.py +++ b/atlas/models.py @@ -100,7 +100,7 @@ class SynMixin(object): return "[Primary]" else: syns = self.synonym.filter(primary=True) - return ", ".join([f"{s}" for s in syns]) + return ", ".join([f"{s.name}" for s in syns]) class Finding(SynMixin, models.Model): diff --git a/atlas/tables.py b/atlas/tables.py index 84dc36d4..c26166c8 100755 --- a/atlas/tables.py +++ b/atlas/tables.py @@ -172,6 +172,7 @@ class ConditionTable(tables.Table): sequence = ("name",) def render_synonym(self, value, record): + return format_html(record.get_synonym_link()) return f"{record.get_synonym_link()}"