Skip to content

Is there any way to define queryset in InstanceSelectorBlock #7

@mubarak117136

Description

@mubarak117136

hi,
i am trouble with a issue where i must need to use queryset in InstanceSelectorBlock.

class ProductBlock(InstanceSelectorBlock):
    def __init__(self, *args, **kwargs):
        target_model = kwargs.pop("target_model", "store.Product")
        super(ProductBlock, self).__init__(target_model=target_model, **kwargs)

Is there any way to initialize InstanceSelectorBlock with queryset.

thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions