Cannot serialise default date value
kevinhowbrook opened this issue · comments
Kevin commented
errorObject of type builtin_function_or_method is not JSON serializable
is thrown when defining a block with a default date value e.g:
start_time = blocks.DateTimeBlock(required=False, default=datetime.now)
Bertrand Bordage commented
Fixed in Wagtail by wagtail/wagtail@0cb5609.
I will backport this change to wagtail-react-streamfield soon.
Kevin commented
Thanks @BertrandBordage
Bertrand Bordage commented
Fixed by c040db0.