Skip to content

Hardcoded filter in multi-value dependend fields #80

Open
@tyctor

Description

@tyctor

I think, that is not good idea to hardcode filter used in dependent field to filter queryset

this line:

f"{model_field_name}__in": self.request.GET.getlist(

is adding this hardcoded filter __in

but in my use case i need another filter to be used - __has_any_keys to query postgress JSONField
so better will be to let user to choose kind of filter in widget initialization, instead of hardcode __in

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions