Ticket #17789: 17789.diff
File 17789.diff, 641 bytes (added by , 13 years ago) |
---|
-
django/contrib/admin/options.py
269 269 if len(parts) == 1: 270 270 return True 271 271 clean_lookup = LOOKUP_SEP.join(parts) 272 return clean_lookup in self.list_filteror clean_lookup == self.date_hierarchy272 return clean_lookup in [isinstance(f, (tuple, list)) and f[0] or f for f in self.list_filter] or clean_lookup == self.date_hierarchy 273 273 274 274 def has_add_permission(self, request): 275 275 """