[Answered ]-Django-filter field not showing after adding lookup expressions – django-filter lib

1👍

With 'name': ['icontains'], you filter with name__icontains, so the name of the search field (in the HTML form) should be name__icontains:

{% render_field product_filter.form.name__icontains class="form-control form-control-sm" %}

Leave a comment