ChoiceField with required=False not optional in HTML view #2184
I have a db model containing:
ModelSerializer I believe turns this into a ChoiceField.
Unfortunately the choice list doesn't list an appropriate value to correspond with None.
I have tried setting required=False, but it has no affect.
The text was updated successfully, but these errors were encountered:
Looks like we may currently support this in
Still surprising tho as you do also have
It'd be helpful to see the serializer field it generates - could you do
Unfortunately, that is not very helpful:
Ok, from within the program, did a print(repr(serializer.get_fields())) instead.
That gives me:
Which lists all the choices except for the None choice.
Is this what you where after?