Merge pull request #10407 from abhishekbalam/blog-type-error
fix: Type error when empty "Rich Text" content saved in Blog Post
This commit is contained in:
commit
e6efd9960f
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,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