Ticket #17789: 17789.diff

File 17789.diff, 641 bytes (added by aaugustin, 3 years ago)
  • django/contrib/admin/options.py

     
    269269            if len(parts) == 1:
    270270                return True
    271271            clean_lookup = LOOKUP_SEP.join(parts)
    272             return clean_lookup in self.list_filter or clean_lookup == self.date_hierarchy
     272            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
    273273
    274274    def has_add_permission(self, request):
    275275        """
Back to Top