Opened 15 years ago

Last modified 14 years ago

#11804 closed

Filterspec fails to remove __isnull when __exact passed — at Initial Version

Reported by: marcob Owned by: nobody
Component: contrib.admin Version: 1.1
Severity: Keywords:
Cc: marcoberi@… Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: yes Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I have a link for my users that open a changelist page with a useridisnull=True. That changelist has also a list filter on my users. When a user is chosen, the filter isnull is not removed.
I wrote this (working) patch modifying get_query_string function in admin/views/main.py.
I remove
isnull when exact is passed (in remove or in new_params)

Change History (1)

by marcob, 15 years ago

Attachment: remove-filter-isnull.diff added
Note: See TracTickets for help on using tickets.
Back to Top