Skip to content
This repository has been archived by the owner on Jan 6, 2022. It is now read-only.

Commit

Permalink
Use custom default block value instead of None.
Browse files Browse the repository at this point in the history
  • Loading branch information
BertrandBordage committed Aug 26, 2018
1 parent 79606df commit b8e3cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wagtail_react_streamfield/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def get_definition(cls, key, block):
block_definition['className'] = block.meta.classname
if isinstance(block, FieldBlock):
block_definition['html'] = block.render_form(
block.to_python(None), prefix='field-__ID__')
block.get_default(), prefix='field-__ID__')
title_template = cls.get_title_template(block.name, block)
if title_template is not None:
block_definition['titleTemplate'] = title_template
Expand Down

0 comments on commit b8e3cdd

Please sign in to comment.