{% load rest_framework_filters %}
{% load crispy_forms_tags %}
{% load i18n %}

<h2>{% trans "Field filters" %}</h2>
{% crispy filter.form %}

{% for related_name, filterset in filter.related_filtersets.items %}
<fieldset>
    <legend>{{ filter|label:related_name }}</legend>

    {% comment %}
    {% crispy filterset.form %}
    {% endcomment %}
</fieldset>
{% endfor %}
