Handle mother
This commit is contained in:
parent
a4401d871c
commit
9bda626544
1 changed files with 1 additions and 1 deletions
|
@ -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 else self.keyword
|
return '%s > %s' % (self.mother, self.keyword) if self.mother.keyword != '->' and self.mother != '->' else self.keyword
|
||||||
|
|
||||||
|
|
||||||
class ResourceKeyword(models.Model):
|
class ResourceKeyword(models.Model):
|
||||||
|
|
Loading…
Reference in a new issue