Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using RelatedFieldAjaxListFilter for autocomplete erase previous applied filters #41

Open
gu-blanco opened this issue Jul 1, 2022 · 0 comments

Comments

@gu-blanco
Copy link

gu-blanco commented Jul 1, 2022

I defined some filters using RelatedFieldAjaxListFilter (following the instructions inhttps://django-jet-reboot.readthedocs.io/en/latest/autocomplete.html) and I noticed that everytime I apply a new filter the previous ones are removed from the URL.

Using as example the code bellow: When I apply the user's filter the URL is changed to http://localhost:8000/admin/example_admin/?user__id__exact=24. Applying the 'product's filter the URL changes to http://localhost:8000/admin/example_admin/?product__id__exact=3 (erases the previous filter). The right one should be http://localhost:8000/admin/example_admin/?user__id__exact=24&product__id__exact=3.

`

class ExampleAdmin():

    list_filter = (('user', RelatedFieldAjaxListFilter), ('product', RelatedFieldAjaxListFilter),)

`

Someone knows a way to fix that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant