Django-tables2 send parameters to custom table template
问题 I'm trying to use a custom table template to embed the django-filter fields on my table. So I copied the django-tables2 bootstrap.html template in a new file custom_table.html . Then I added it the following code in the thead section: {% if filter %} <tr> {% for filter_field in filter.form.fields %} <td> {{ filter_field }} </td> {% endfor %} <td> <button class="login100-form-btn" type="submit">Filter</button> </td> </tr> {% endif %} So the problem is : how can I send the filter to the table