{% comment %} Companion to dropdown_filter.html for LookupFilterMixin. This filter has no fixed set of choices to link to -- only a free-text value paired with an operator -- so it renders a real
that submits via GET. No JavaScript is required. Styling lives in lookup_filter.css, loaded below via a , not a `Media` class: `admin_list_filter()` (django.contrib.admin.templatetags. admin_list) renders `spec.template` directly with `get_template(...) .render(...)`, and `ModelAdmin.media` -- the only media Django's own change_list.html emits -- is a fixed property that never consults `list_filter`. There is no `Media` hook a `ListFilter` template can ride on, so the stylesheet is linked here instead. A to an external file needs no `'unsafe-inline'` style-src grant, unlike a `style=` attribute, so this keeps the page CSP-safe while still loading the CSS. {% endcomment %} {% load i18n static %} {% block pre %} {% endblock %}

{% blocktrans with title as filter_title %} By {{ filter_title }} {% endblocktrans %}