Ticket #11804: remove-filter-isnull.diff

File remove-filter-isnull.diff, 704 bytes (added by marcob, 15 years ago)
  • django/contrib/admin/views/main.py

    diff -r 443eef883f08 django/contrib/admin/views/main.py
     
    8686        if new_params is None: new_params = {}
    8787        if remove is None: remove = []
    8888        p = self.params.copy()
     89        for r in remove[:]:
     90            if r.endswith('__exact'):
     91                remove.append(r.replace('__exact', '__isnull'))
     92        for k in new_params.keys():
     93            if k.endswith('__exact'):
     94                remove.append(k.replace('__exact', '__isnull'))
    8995        for r in remove:
    9096            for k in p.keys():
    9197                if k.startswith(r):
Back to Top