📜  Django 过滤器 - Python 代码示例

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

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