Skip to content
Permalink
Browse files
Shortening.
  • Loading branch information
felixfontein committed Apr 28, 2018
1 parent f99a898 commit e43b64c25dcdb3d890cc1460106d561b84cbd662
Showing 1 changed file with 2 additions and 4 deletions.
@@ -255,17 +255,15 @@ def __init__(

status = self.meta[lang].get('status')
if status:
is_private = False
is_draft = False
if status == 'published':
post_status = status
is_private = False
is_draft = False
elif status == 'private':
post_status = status
is_private = True
is_draft = False
elif status == 'draft':
post_status = status
is_private = False
is_draft = True
else:
LOGGER.warn(('The post "{0}" has the unknown status "{1}". ' +

0 comments on commit e43b64c

Please sign in to comment.