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

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

src/q/u/quanda-HEAD/feeds.py   quanda(Download)
    def items(self):
        return Question.objects.order_by("-posted")[:20]
 
    def item_link(self, item):
        return item.get_absolute_url()

src/q/u/quanda-HEAD/views/__init__.py   quanda(Download)
        'featured': featured,
        'top_questions': Question.objects.annotate(score=Sum('questionvotes__score')).order_by('-score')[:5],
        'recent_questions': Question.objects.order_by("-posted")[:5],
        'your_answers': your_answers,
        'unanswered_questions': Question.objects.filter(answers__isnull=True).order_by('-posted')[:5],