

def get_object(self, request):
    query = {
        
    }
    product_slug = request.GET.get('product')
    topic_slug = request.GET.get('topic')
    locale = request.LANGUAGE_CODE
    if (product_slug and (product_slug != 'all')):
        query['product'] = get_object_or_404(Product, slug=product_slug)
        if topic_slug:
            query['topic'] = get_object_or_404(Topic, slug=topic_slug, product__slug=product_slug)
    if locale:
        query['locale'] = locale
    return query

dataset/ETHPy150Open mozilla/kitsune/kitsune/questions/feeds.py QuestionsFeed.get_object/original