Don't worry about this. Deeper reading has led me to the correct
approach :)

Thanks everyone

Regards

Crispin

On Wed, 2008-09-17 at 09:13 +0000, Crispin Wellington wrote:
> Hello,
> 
> This is a quick one I cant seem to find in the docs. If I have a model
> with:
> 
> text_value = models.CharField(max_length=16, null=True, blank=True)
> 
> and in the admin interface the user doesn't fill in a value, how do I
> make the value actually be NULL rather than unicode u'' ?
> 
> If I turn off blank, they can't leave it blank at all.
> 
> If I turn it on, it gets set to an empty string.
> 
> What I would like is if its empty, for the database to be set to NULL.
> 
> Is this possible? If so how do I achieve it?
> 
> 
> Kind Regards
> 
> Crispin Wellington
> 
> 
> 
> > 
> 


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to