def section(self, value, queryset=None):
        
        if queryset is None:
            queryset = self.published()
        
        if not value:
            return queryset
        else:
            try:
                section_idx = self.model.section_idx(value)
            except __HOLE__:
                raise InvalidSection
            all_sections = Q(section=self.model.section_idx(ALL_SECTION_NAME))
            return queryset.filter(all_sections | Q(section=section_idx))
dataset/ETHPy150Open caseywstark/colab/colab/apps/biblion/managers.py/PostManager.section