diff --git a/app/models.py b/app/models.py index 3321d16..2c419e4 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 str(self.mother) == '0' else self.keyword + return '%s > %s' % (self.mother, self.keyword) if self.mother.keyword != '->' else self.keyword class ResourceKeyword(models.Model):