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
Choose some filters and apply. Then let's say, current URL after filtering is /admin/app/model/?status=open&status=closed&owner__id__exact=1&owner__id__exact=2&owner__id__exact=3&writer__id__exact=5
Write 'test' to search form & click enter. Current URL after search is /admin/app/model/?q=test&status=open&owner__id__exact=1&writer__id__exact=5
So, status=closed and owner__id__exact=2&owner__id__exact=3 filters get lost.
While just filtering (not searching), there is no problem like this one. But filter a field with multiple values then searching breaks query string & filters.
The text was updated successfully, but these errors were encountered:
sezginacer
changed the title
filtered choices get lost when search used after filtering
fix: filtered choices get lost when search used after filtering
Jan 23, 2025
What version of Unfold are you using?
main
What version of Django are you using?
5.1
What browser are you using?
Firefox 135.0
Did you checked changelog/commit history, if the bug is not already fixed?
Yes
Did you searched other issues, if the bug is not already fixed?
Yes
Did you checked documentation?
Yes
Are you able to replicate the bug in the demo site?
No, I could not find MultipleDropdownFilter or MultipleRelatedDropdownFilter on demo site.
Repository with reproduced bug
No
Describe your issue
Suppose we have an admin class like below.
/admin/app/model/?status=open&status=closed&owner__id__exact=1&owner__id__exact=2&owner__id__exact=3&writer__id__exact=5
/admin/app/model/?q=test&status=open&owner__id__exact=1&writer__id__exact=5
status=closed
andowner__id__exact=2&owner__id__exact=3
filters get lost.While just filtering (not searching), there is no problem like this one. But filter a field with multiple values then searching breaks query string & filters.
The text was updated successfully, but these errors were encountered: