Closed mgax closed 10 months ago
Refs. https://github.com/torchbox/wagtail-grapple/issues/231
Allow specifying extra interfaces when registering a streamfield block:
@register_streamfield_block(extra_interfaces=(CustomInterfaceForBlock,)) class BlockWithCustomInterface(blocks.StructBlock): # ...
@mgax merging this. As noted in Slack, I will move to declaring the additional interfaces via a property on the model, so will adapt this
Refs. https://github.com/torchbox/wagtail-grapple/issues/231
Allow specifying extra interfaces when registering a streamfield block: