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):