def items(self, query):
        qs = Question.objects.filter(creator__is_active=True, is_spam=False)

        if 'product' in query:
            qs = qs.filter(product=query['product'])

            if 'topic' in query:
                qs = qs.filter(topic=query['topic'])

        if 'locale' in query:
            qs = qs.filter(locale=query['locale'])

        return qs.order_by('-updated')[:config.QUESTIONS_PER_PAGE]
dataset/ETHPy150Open mozilla/kitsune/kitsune/questions/feeds.py/QuestionsFeed.items/original