[Fixed]-Django formset factory ChoiceField causes is_valid to fail and return false

1👍

You have:

self.search_forms = search_formset(get_request or data)

This is unusual. It means that the formset is always bound.

Normally you would have

self.search_forms = search_formset(get_request or None)

Since you don not have required=False, that means that you must provide the values for the orders fields in the form data, otherwise you will get an error.

Leave a comment