Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to preserve filter selection after save in Django Admin

First, I did look at this question, but its over a year old. Surely now there is a good way in Django 1.1.1 to carry filter selection forward after a user clicks the save button in the Admin.

In a table with thousands of records, filtering is essential. And if a user makes several filter choices that effort shouldn't have to be repeated.

like image 747
Daniel Rhoden Avatar asked Dec 29 '09 20:12

Daniel Rhoden


1 Answers

The answer is still the same: out of the box, Django doesn't support this behavior. There are a couple of tickets in the issue tracker with patches: #3777, #6903. The middleware class in this comment works without modifying Django code.

like image 91
Benjamin Wohlwend Avatar answered Nov 02 '22 15:11

Benjamin Wohlwend