Closed luizrrodrigues closed 5 years ago
You have to use ChoiceDropdownFilter. Can you please submit a pull request for documenting this in README.md?
MR sent.
Not to dredge up an old issue, but having just started with this package, when I use ChoiceDropdownFilter
it doesn't seem to do anything. The options are just rendered as a regular list. When I use the standard DropdownFilter
the actual values are rendered (but still as the standard admin list).
Nevermind, I can into the minimum list length issue (only had 3 choices). Will just override the template to adjust for this.
Also the docs aren't totally clear if this filter is needed for just ChoiceField
choice fields or also CharField
s with choices=
set.
@dwasyl, Can you please submit a pull request to clarify these points?
Looks like not working with field that have choice, like:
When try use this in first time, if list data not have all status option present, this will return normal field (without dropdown) and with values 0, 1, 2, etc.
So add all possible status to data, now dropdown is rendered but values is 0, 1, 2, etc..