mrts / django-admin-list-filter-dropdown

Use dropdowns in Django admin list filter
MIT License
316 stars 48 forks source link

how to specify the length at which the dropwdown filter will be activated? #25

Closed luisjdtt closed 2 years ago

luisjdtt commented 2 years ago

I'm using a ChoiceDropDownFilter that only has 3 options for filtering and the dropdown is therefore not activated. I know they are just three elements but i need them to be in the dropdown. Is there a way to specify the length at which the dropdown filter will be activated? What possible course of action should i pursue?

seancallaway commented 2 years ago

It looks like it's hard coded in the template. You could probably override the template.

luisjdtt commented 2 years ago

Thank you! It worked.

mrts commented 2 years ago

There's actually a pull request to make it configurable, but it needs amending: https://github.com/mrts/django-admin-list-filter-dropdown/pull/14