Fix suggested articles when no keyword
This commit is contained in:
parent
92fd0aac80
commit
2621796a6f
1 changed files with 3 additions and 1 deletions
|
@ -150,4 +150,6 @@ class Article(AdminUrlMixin, models.Model):
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def get_formatted_keywords(self):
|
def get_formatted_keywords(self):
|
||||||
return list(map(lambda k: k.strip().lower(), self.keywords.split(",")))
|
return list(
|
||||||
|
filter(None, map(lambda k: k.strip().lower(), self.keywords.split(",")))
|
||||||
|
)
|
||||||
|
|
Reference in a new issue