Ticket #11804: remove-filter-isnull.diff
File remove-filter-isnull.diff, 704 bytes (added by , 15 years ago) |
---|
-
django/contrib/admin/views/main.py
diff -r 443eef883f08 django/contrib/admin/views/main.py
86 86 if new_params is None: new_params = {} 87 87 if remove is None: remove = [] 88 88 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')) 89 95 for r in remove: 90 96 for k in p.keys(): 91 97 if k.startswith(r):