Hi everybody,
we've run into an interesting situation: we implemented a custom SimpleListFilter for the admin which presents the choices as a list of checkboxes. Pressing "submit" sends the list to the backend for filtering.
Unfortunately, this doesn't really work well and it took us a while to find out why: the
ChangeList view
request.GET (a
QueryDict)
into a dict.
This means, a query string in the form of ?q=123&state=1&state=2 simply loses all state values except the last one. It still works in principle but as soon as you e.g. click on a column heading to re-sort, the link breaks.
I checked the git log and traced this re-casting back to the "
NEW ADMIN MERGE" in 2005. Does anyone know why this was done? Shouldn't we rather keep
self.params as a
QueryDict?
Thanks!
Jonas