.
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ class SynMixin(object):
|
|||||||
return "[Primary]"
|
return "[Primary]"
|
||||||
else:
|
else:
|
||||||
syns = self.synonym.filter(primary=True)
|
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):
|
class Finding(SynMixin, models.Model):
|
||||||
|
|||||||
@@ -172,6 +172,7 @@ class ConditionTable(tables.Table):
|
|||||||
sequence = ("name",)
|
sequence = ("name",)
|
||||||
|
|
||||||
def render_synonym(self, value, record):
|
def render_synonym(self, value, record):
|
||||||
|
return format_html(record.get_synonym_link())
|
||||||
return f"{record.get_synonym_link()}"
|
return f"{record.get_synonym_link()}"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user