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. I did check the DB to make sure that "not null" wasn't set. I even dropped the table and then did another syncdb. But, I still keep getting this same error. To try to test whether the error was coming from the DB or Django, I inserted a couple of rows manually: once specifying the columns (and omitting the nulls), and once by using the NULLs explicitly). Succeeded both times, so I'm inclined to believe that this error is coming from Django and not the database. Any ideas? Thanks. K.C. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---