How I can get filter parameter in home page but show the result in products list page

This is my code now

def product_list(request):
item = Product.objects.all()
filters = ProductFilter(request.GET, queryset=item)
return render(request, 'filter.html', {'filter': filters})

like this enter image description here

thanks for helping you guys

Back to Top