On 10/28/05, Emanuele <[EMAIL PROTECTED]> wrote: > using django automatic admin interface I need to show a select-box with > "True", "False" and "Unknown" values for a certain field of an object. > NullBooleanField is the natural choice as type of that field, but I > want to add a constraint and a default value in this way: > - default value should be "Unknown" > - "Unknown" value has not to be accepted as a valid value for that > field by the admin interface
If "Unknown" values are not allowed, it seems like you should be using BooleanField instead of NullBooleanField. Adrian -- Adrian Holovaty holovaty.com | djangoproject.com | chicagocrime.org