On Tue, Jun 23, 2009 at 4:14 PM, K.C. Smith <kevchr...@gmail.com> wrote:

>
> I want to (optionally) leave some fields in a model/table NULL.  I've
> set the options "null=True" and "blank=True" for the fields in
> question.  I know it's working because the admin site add form greyed
> out the "blank=True" fields.  But, I still can't add an object with
> these fields blank/NULL.  I get this error (in part):
>
> Exception Type:         DataError
> Exception Value:        invalid input syntax for type inet: ""
> Exception Location:     /usr/local/lib/python2.5/site-packages/django/db/
> backends/util.py in execute, line 19
> Python Executable:      /usr/local/bin/python
> Python Version:         2.5.4
>
> I'm using Postgres and the psycopg2-2.0.9 module. And other models/
> tables without null values are working fine.
>

Looks like:

http://code.djangoproject.com/ticket/5622

Karen

--~--~---------~--~----~------------~-------~--~----~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to