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" %}
Source:stackexchange.com