There might be cases where a CountryField should allow to select an empty/blank option: If the model has columns of CountryType which are nullable, the related CountryField should allow the empty option.
At the moment I have tried to fake the form field choices when the form is created, but with no luck because at some point there are failed coercions to Country that fails. This doesn't work:
There might be cases where a
CountryField
should allow to select an empty/blank option: If the model has columns ofCountryType
which arenullable
, the relatedCountryField
should allow the empty option.At the moment I have tried to fake the form field
choices
when the form is created, but with no luck because at some point there are failed coercions toCountry
that fails. This doesn't work:How should be handled the fact that the country field might be optional?