This commit is contained in:
Ross
2021-11-25 22:34:17 +00:00
parent 5e2b73ccc9
commit 75970fd4c8
2 changed files with 20 additions and 0 deletions
+2
View File
@@ -79,6 +79,8 @@ class Condition(models.Model):
synonym = models.ManyToManyField("self", blank=True)
primary_name = models.BooleanField(default="True")
def __str__(self) -> str:
if self.synonym.count() == 0:
return self.name