FilterChoiceField forces queryset evaluation despite rendering only a default choice #4108
Labels
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
Environment
Steps to Reproduce
(This can be replicated anywhere the APISelect widget is in use; this is just one concise example.)
Expected Behavior
Because the APISelect widget populates only a single initial choice (if one exists) and not every available option, it should not be querying the database for all options.
Observed Behavior
A query is made for all field options, even though they are unnecessary to render the widget.
The text was updated successfully, but these errors were encountered: