You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
You have a point. However, this package is supposed to work in most, but not all cases out of the box. If you have a good solution, please share. If not, we maybe just need to improve the documentation, to help people override the function.
I think, that is not good idea to hardcode filter used in dependent field to filter queryset
this line:
django-select2/django_select2/views.py
Line 57 in bfc9313
is adding this hardcoded filter
__in
but in my use case i need another filter to be used -
__has_any_keys
to query postgress JSONFieldso better will be to let user to choose kind of filter in widget initialization, instead of hardcode
__in
The text was updated successfully, but these errors were encountered: