I'm trying to configure the Django admin bindings for a specific model so that I can quickly filter by the exact value of a specific field. I know I can manually tamper with the GET parameters to do this:
?fieldname__exact=foobar
What I can't seem to do, is get the sidebar to display a small form where I can enter this value. I know I can add fieldname
to list_filter
, but that doesn't scale well beyond tens of unique values. I looked into django-advanced-filters for a bit, but it doesn't seem to be compatible with Django 1.11.
How can I implement exact search for a specific field in the Django admin?