From 07f21bb3509206090c3b19910538236cecbca492 Mon Sep 17 00:00:00 2001 From: PCoder Date: Mon, 29 Nov 2021 08:13:02 +0530 Subject: [PATCH] More --- app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models.py b/app/models.py index 4b96d2e..3321d16 100644 --- a/app/models.py +++ b/app/models.py @@ -485,7 +485,7 @@ class Keyword(models.Model): keyword = models.TextField(blank=True, null=True) def __str__(self): - return '%s > %s' % (self.mother, self.keyword) if self.mother.keyword != '->' and self.mother != '->' else self.keyword + return '%s > %s' % (self.mother, self.keyword) if self.mother.keyword != '->' and str(self.mother) == '0' else self.keyword class ResourceKeyword(models.Model):