Opened 15 years ago
Last modified 14 years ago
#11804 closed
Filterspec fails to remove __isnull when __exact passed — at Version 2
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 (last modified by )
I have a link for my users that open a changelist page with a user__id__isnull=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 (3)
by , 15 years ago
Attachment: | remove-filter-isnull.diff added |
---|
comment:1 by , 15 years ago
Cc: | added |
---|
comment:2 by , 15 years ago
Component: | django-admin.py → django.contrib.admin |
---|---|
Description: | modified (diff) |
Has patch: | set |
Needs tests: | set |
Note:
See TracTickets
for help on using tickets.