📜  django-filter - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:40.993000             🧑  作者: Mango

代码示例2
def product_list(request):
    filter = ProductFilter(request.GET, queryset=Product.objects.all())
    return render(request, 'my_app/template.html', {'filter': filter})