OK, but using "Unknown" was just a trick. The real problem is: how to
_force_ the user to _choose_ between Yes and No avoiding a default
value? A BooleanField shows a checkbox in admin interface: if you don't
specify a default value and if you don't click on the box, it returns
'False'. So a default value is present ('False') even if you didn't
specify it.  A checkbox can't avoid a default value.

Getting requirements for the application I'm writing people told me
that a particular field, that is boolean, is really important and who
enters data should be forced to explicitly click on yes or no without
being able to save data before specifying the choice. Is it possible to
do it in django?

I believe that in this case I need a three-state choice ('Yes', 'No',
'---') with a default ('---') that can't be accepted by the application
(or admin interface to be precise), so the user is forced to
explicitely choose 'Yes' or 'No'. But how to do it?

Anyway thanks for the answer!

Emanuele

Reply via email to