This commit is contained in:
PCoder 2021-11-29 08:16:13 +05:30
parent 07f21bb350
commit f828ce5a6e

View file

@ -485,7 +485,7 @@ class Keyword(models.Model):
keyword = models.TextField(blank=True, null=True) keyword = models.TextField(blank=True, null=True)
def __str__(self): 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): class ResourceKeyword(models.Model):