Unique fields that allow nulls in Django
Django has not considered NULL to be equal to NULL for the purpose of uniqueness checks since ticket #9039 was fixed, see: http://code.djangoproject.com/ticket/9039 The issue here is that the normalized “blank” value for a form CharField is an empty string, not None. So if you leave the field blank, you get an empty string, not … Read more