Hi all, I created a model with a CharField which has to be NULL in the database. So I gave it blank=True, null=True and unique=True options. I have to allow NULL values in the database, as well as blank values in admin, but in the same time, I'd like to be sure that non NULL values are unique.
Actually, with SQLite at least, it seems that multiple NULL values are considered non unique. Is there a way to achieve this, other than using a custom validator? TIA, -- Kilian CAVALOTTI Administrateur réseaux et systèmes UPMC / CNRS - LIP6 (C870) 8, rue du Capitaine Scott Tel. : 01 44 27 88 54 75015 Paris - France Fax. : 01 44 27 70 00 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---