{% comment %} This is a modification of the standard filter.html template that allows for more flexible filters. If a filter returns its title as "__filtrate__" the more flexible rendering is activated and the `choices()` method of the filter must return a dict wrapped in a list with the keys `title` and `content` instead. {% endcomment %} {% load i18n %} {% if title != '__filtrate__' %}