Re: IPAddressField inserted as empty string although null=True

2010-09-22 Thread rihad
Yes, that was me && me, thank you :) Going on to learn Django... -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@googlegroups.com. To unsubscribe from this group, send email to django-

Re: IPAddressField inserted as empty string although null=True

2010-09-22 Thread Russell Keith-Magee
On Wed, Sep 22, 2010 at 6:00 PM, rihad wrote: > I have these fields in a model: > >        ipaddr1 = models.IPAddressField() >        ipaddr2 = models.IPAddressField(blank=True, null=True) > > When I "wrap" this model in a ModelForm, fill the form, and call > form.save(), empty ipaddr2 gets insert

IPAddressField inserted as empty string although null=True

2010-09-22 Thread rihad
I have these fields in a model: ipaddr1 = models.IPAddressField() ipaddr2 = models.IPAddressField(blank=True, null=True) When I "wrap" this model in a ModelForm, fill the form, and call form.save(), empty ipaddr2 gets inserted as an empty string, causing database errors for Postgr