Describe the bug
After saving and confirming your actions, any filters which were present are not preserved. Normally in Django admin, if you use a filter (which adds something like ?foo=bar in the url), saving the model puts you back to the list view but remembers any filters you had previously used.
To Reproduce
Steps to reproduce the behavior:
Got to listview in admin of any model which is using NesteModelAdmin.
Filter results. Note how your url has something like /admin/app/model/?foo=bar.
Click to edit model.
Edit model in any matter which will trigger the confirmation page django-admin-confirm features.
Confirm
Note how you are back to the list page but your filters are reset. Specifically note that the url's query parameters are all gone.
Expected behavior
After confirming (step 5), I expect the filters to be preserved. In this case I'd expect the url to be back to /admin/app/model/?foo=bar.
Versions:
Firefox 113.0.2
Django 4.0.8
django-admin-confirm 1.0.0
Additional context
Django has supported preserving filters on the list view since 1.6
Describe the bug After saving and confirming your actions, any filters which were present are not preserved. Normally in Django admin, if you use a filter (which adds something like
?foo=bar
in the url), saving the model puts you back to the list view but remembers any filters you had previously used.To Reproduce Steps to reproduce the behavior:
NesteModelAdmin
./admin/app/model/?foo=bar
.Expected behavior After confirming (step 5), I expect the filters to be preserved. In this case I'd expect the url to be back to
/admin/app/model/?foo=bar
.Versions:
Additional context Django has supported preserving filters on the list view since 1.6