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

Preserving filters in the admin interface to match django. #9177

Open
ollz272 opened this issue Sep 9, 2022 · 1 comment
Open

Preserving filters in the admin interface to match django. #9177

ollz272 opened this issue Sep 9, 2022 · 1 comment

Comments

@ollz272
Copy link
Contributor

ollz272 commented Sep 9, 2022

Is your proposal related to a problem?

In the django admin interface, if you have a filter applied in the list view, when going to the detail view these filters will be preserved so that, upon returning to the list view, they're still in place. We've had some questions from partners about this feature in the wagtail interface, and maybe its time to explore whether this is possible?

Describe the solution you'd like

The cleanest solution would likely to be referencing the current django implementation:

Describe alternatives you've considered

Internally, we have used a session to store the filters of a given admin model, and then reapply these when a model admin is resaved. Im not sure this is the best solution for wagtail, though.

@TomasLopes1998
Copy link

Hi, can you elaborate a little bit more how did you did this? I am trying to keep the filters but I have no ideia where to start.

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

No branches or pull requests

2 participants