#11804: Filterspec fails to remove __isnull when __exact passed
-------------------------------------------+--------------------------------
          Reporter:  marcob                |         Owner:  nobody
            Status:  new                   |     Milestone:        
         Component:  django.contrib.admin  |       Version:  1.1   
        Resolution:                        |      Keywords:        
             Stage:  Unreviewed            |     Has_patch:  1     
        Needs_docs:  0                     |   Needs_tests:  1     
Needs_better_patch:  0                     |  
-------------------------------------------+--------------------------------
Changes (by russellm):

  * has_patch:  0 => 1
  * component:  django-admin.py => django.contrib.admin
  * needs_tests:  0 => 1

Old description:

> 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)

New description:

 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)

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11804#comment:2>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to