fix: Type error when empty 'Rich Text' content saved in Blog Post
This commit is contained in:
parent
66a63bbc99
commit
f4cd72c792
1 changed files with 1 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ class BlogPost(WebsiteGenerator):
|
|||
context.comment_text = _('{0} comments').format(len(context.comment_list))
|
||||
|
||||
def set_read_time(self):
|
||||
content = self.content or self.content_html
|
||||
content = self.content or self.content_html or ''
|
||||
if self.content_type == "Markdown":
|
||||
content = markdown(self.content_md)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue