Ticket #16180: ticket-16180.diff
File ticket-16180.diff, 744 bytes (added by , 13 years ago) |
---|
-
django/contrib/admin/views/main.py
252 252 ordering_fields[idx] = 'desc' if pfx == '-' else 'asc' 253 253 return ordering_fields 254 254 255 def get_ignored_lookup_params(self): 256 return IGNORED_PARAMS 257 255 258 def get_lookup_params(self, use_distinct=False): 256 259 lookup_params = self.params.copy() # a dictionary of the query string 257 260 258 for ignored in IGNORED_PARAMS:261 for ignored in self.get_ignored_lookup_params(): 259 262 if ignored in lookup_params: 260 263 del lookup_params[ignored] 261 264