mrts / django-admin-list-filter-dropdown

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

Added the ability to specify the length in the settings.py array itself at which the dropdown will work #14

Open NMelis opened 6 years ago

NMelis commented 6 years ago

Added the ability to specify the length in the settings.py array itself at which the dropdown will work

mrts commented 6 years ago

This does not feel quite right... let it simmer a bit more. But many thanks for the proposal and your contribution!

mrts commented 2 years ago

@NMelis, I sincerely hope that it's okay to get back to this four years later! I really appreciate your contribution and want to include it, but I think the get_setting template tag is too general. Can you please add a template tag admin_listfilter_dropdown_threshold that fetches the threshold from settings and if it's missing, returns the default value? Can you please name the file admin_listfilter_dropdown_threshold.py instead of custom_tags.py? Can you please also document the setting?