fix tüpflischiiser

This commit is contained in:
Christian Cueni 2018-10-17 13:19:01 +02:00
parent 0adaedafb6
commit c6ca532633
1 changed files with 1 additions and 2 deletions

View File

@ -77,9 +77,8 @@ class AddContentBlock(relay.ClientIDMutation):
title = content_block_data.get('title')
contents = content_block_data.get('contents')
block_type = content_block_data.get('type', ContentBlock.NORMAL)
block_type = set_user_defined_block_type(content_block_data.get('type', ContentBlock.NORMAL))
block_type = set_user_defined_block_type(block_type)
new_content_block = ContentBlock(title=title, user_created=True, owner=context.user, type=block_type)
if parent is not None: