This commit is contained in:
Ross
2021-12-06 13:12:25 +00:00
parent 464fb80a1c
commit c50fd80c58
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -100,7 +100,7 @@ class SynMixin(object):
return "[Primary]"
else:
syns = self.synonym.filter(primary=True)
return ", ".join([f"<a href='{s.get_absolute_url()}'>{s}</a>" for s in syns])
return ", ".join([f"<a href='{s.get_absolute_url()}'>{s.name}</a>" for s in syns])
class Finding(SynMixin, models.Model):
+1
View File
@@ -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()}"