Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/b/o/boar-HEAD/boar/articles/feeds.py   boar(Download)
    def get_object(self, request, slug):
        return Section.objects.get(slug=slug)
 
    def items(self, obj):
        qs = Article.objects.filter(published=True, section=obj)
    def get_object(self, request, section_slug, topic_slug):
        return {'topic': Tag.objects.get(slug=topic_slug), 'section': Section.objects.get(slug=section_slug)}
 
    def items(self, obj):
        return self._add_podcast_metadata(

src/b/o/boar-HEAD/boar/articles/templatetags/articles.py   boar(Download)
def section_block(context, section, heading='3', articles=None):
    if not isinstance(section, Section):
        section = Section.objects.get(slug=section)
    if articles is None:
        articles = Article.objects.filter(published=True)

src/b/o/boar-HEAD/boar/articles/views.py   boar(Download)
    def section(self):
        if not hasattr(self, '_section'):
            try:
                self._section = Section.objects.get(slug=self.slug)
            except Section.DoesNotExist: