#13071: NullBooleanField save error in Admin? --------------------------+------------------------------------------------- Reporter: Ed Hagen | Owner: nobody Status: new | Milestone: 1.2 Component: Contrib apps | Version: 1.2-beta Keywords: | Stage: Unreviewed Has_patch: 0 | --------------------------+------------------------------------------------- I have a model field defined thus:
{{{ benefit = models.NullBooleanField() }}} In django 1.1 and 1.2 pre-alpha, nulls were displayed with a "?" icon in list view. In the Admin change form, a pop-up menu appeared with 3 options (Unknown, Yes, No). Setting to "Unknown" and saving did not generate any errors. I then updated to django 1.2 beta 1 SVN-12738. Nulls are now displayed with "(None)". When I try and set this field to "Unknown" using the popup menu, and then save in the Admin, I get the following error: "This field cannot be blank." I get this same error when I try and add a new record in the Admin. I am using python 2.5.1 on Mac OS X and sqlite3. -- Ticket URL: <http://code.djangoproject.com/ticket/13071> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.