From 5e2b73ccc9784add4c1589b7f75d813b11cfb58e Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 25 Nov 2021 22:30:43 +0000 Subject: [PATCH] . --- atlas/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/atlas/models.py b/atlas/models.py index 003ea2be..10183a9e 100644 --- a/atlas/models.py +++ b/atlas/models.py @@ -83,7 +83,7 @@ class Condition(models.Model): if self.synonym.count() == 0: return self.name else: - synonyms = ",".join([i for i in self.synonym.all()]) + synonyms = ",".join([i.name for i in self.synonym.all()]) return f"{self.name} ({synonyms})"