mrts / django-admin-list-filter-dropdown

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

Drop Down Is not showing in django 2.2 #21

Closed shoaburrashid closed 5 years ago

shoaburrashid commented 5 years ago

here is my code: list_filter = (('question_id',DropdownFilter),('question',DropdownFilter),('qtype',RelatedDropdownFilter), ('difficulties',RelatedDropdownFilter),('subject',RelatedDropdownFilter), ('topic',RelatedDropdownFilter),('sub_topic',RelatedDropdownFilter))

here is the screenshot:

Screenshot from 2019-11-06 10-38-49

mrts commented 5 years ago

It's not showing because there are too little values in your choices, dropdowns are rendered if the choices list contains more than 4 values, see here. Can you send a pull request to document this?