Ticket #17789: options.py.diff

File options.py.diff, 616 bytes (added by Kidwind, 4 years ago)
  • (a) D:/Temp/options.py-revBASE.svn000.tmp.py vs. (b) E:/Program

    a b  
    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