On 07-Jul-06, at 4:08 PM, Kilian CAVALOTTI wrote:

> 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.

i dont think any sane database would allow null values in a unique  
column - or should

-- 

regards
kg
http://lawgon.livejournal.com
http://avsap.org.in



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to