>From the http://code.djangoproject.com/wiki/NewbieMistakes
Problem ¶ When you have a Field: current_zip = meta.IntegerField(maxlength=5,blank=True) django will create a not nullable field in the DB. However leaving the field blank (in admin/web) django will try and insert a NULL value in the DB. Solution ¶ Add null=True: current_zip = meta.IntegerField(maxlength=5,null=True,blank=True) I suppose it will do the trick for a ForeignKey too. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---