From 9a13389047b87cc066aeaddc0557614d28fb0420 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 6 Dec 2021 12:54:42 +0000 Subject: [PATCH] . --- atlas/tables.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/atlas/tables.py b/atlas/tables.py index 322856bd..b458d637 100755 --- a/atlas/tables.py +++ b/atlas/tables.py @@ -144,7 +144,7 @@ class ConditionTable(tables.Table): selection = tables.CheckBoxColumn(accessor="pk", orderable=False) synonym = tables.ManyToManyColumn(verbose_name="Synonyms") - synonym2 = tables.Column(attrs=[A("pk")]) + synonym2 = tables.Column() parent = tables.ManyToManyColumn(verbose_name="Parents") class Meta: @@ -153,6 +153,9 @@ class ConditionTable(tables.Table): fields = ("primary", "subspecialty") sequence = ("name",) + def render_synonym2(self, value): + return value + class FindingTable(tables.Table): name = tables.Column(linkify=('atlas:finding_detail', {'pk': tables.A('pk')}), verbose_name="Finding")