Closed tbrlpld closed 9 months ago
When using the StructBlockFactory with a StructBlock subclass that defines a custom Meta.value_class, this value class is ignored.
StructBlockFactory
StructBlock
Meta.value_class
I think this section is the cause for that. It seems to return a StructValue, regardless if the block_class defines a value_class.
StructValue
block_class
value_class
https://github.com/wagtail/wagtail-factories/blob/9db00f8c8390a29388406e99b7951415bc5b28de/src/wagtail_factories/blocks.py#L155-L160
When using the
StructBlockFactory
with aStructBlock
subclass that defines a customMeta.value_class
, this value class is ignored.I think this section is the cause for that. It seems to return a
StructValue
, regardless if theblock_class
defines avalue_class
.https://github.com/wagtail/wagtail-factories/blob/9db00f8c8390a29388406e99b7951415bc5b28de/src/wagtail_factories/blocks.py#L155-L160