Closed diegoleft closed 3 years ago
Is there a way to add wagtail-instance-selector inside a ListBlock? like this:
wagtail-instance-selector
class DocumentsPlansBlock(InstanceSelectorBlock): def __init__(self, *args, **kwargs): target_model = kwargs.pop("target_model", "plans.Plan") super().__init__(target_model=target_model, **kwargs) class Meta: icon = "image" ......... items = blocks.ListBlock( DocumentsPlansBlock(), label="Documentos / Checkout" )
My specification:
After adding I just broke my panel where i should see all my StreamFields
forget it I just need to run
python manage.py collectstatic --noinput
thanks
Is there a way to add
wagtail-instance-selector
inside a ListBlock? like this:My specification:
After adding I just broke my panel where i should see all my StreamFields