Skip to content

fix: SimpleListFilter reset after submittion#1824

Open
VladislavKost wants to merge 1 commit into
unfoldadmin:mainfrom
VladislavKost:main
Open

fix: SimpleListFilter reset after submittion#1824
VladislavKost wants to merge 1 commit into
unfoldadmin:mainfrom
VladislavKost:main

Conversation

@VladislavKost

Copy link
Copy Markdown

When creating a custom filter by inheriting the SimpleListFilter filter from f"rom django.contrib.admin import SimpleListFilter", a filter is created that does not contain inputs. Because of this, when you click on the "Apply filters" button, the parameter set via SimpleListFilter is reset. To solve this, I suggest adding a hidden input field that will be processed correctly and will not reset the filter.

@VladislavKost VladislavKost changed the title Fix simple list filter reset after submittion Fix SimpleListFilter reset after submittion Jan 29, 2026
@VladislavKost VladislavKost changed the title Fix SimpleListFilter reset after submittion fix: SimpleListFilter reset after submittion Jan 29, 2026
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

Successfully merging this pull request may close these issues.

1 participant