diff --git a/app/models.py b/app/models.py index 4468742..bc09532 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) + return '%s > %s' % (self.mother, self.keyword) if self.mother else self.keyword class ResourceKeyword(models.Model):