Re: ERROR: invalid input syntax for type boolean: ""

2007-05-01 Thread Baurzhan Ismagulov
On Tue, May 01, 2007 at 11:58:44PM +0200, Honza Král wrote: > >Boolean fields have the value ''. Should I initialize all the fields to > >false either in code, or in the constructor? I would expect that Django > >does this for me. > > if you want that you have to supply default value via default

Re: ERROR: invalid input syntax for type boolean: ""

2007-05-01 Thread Honza Král
save() > > I don't set boolean values here. save() results in the following > ProgrammingError: > > ERROR: invalid input syntax for type boolean: "" INSERT INTO "info_object" > (...) VALUES (..., '', '', ''...) > > Boole

ERROR: invalid input syntax for type boolean: ""

2007-05-01 Thread Baurzhan Ismagulov
Hello, I have a class Object(models.Model) which contains model.BooleanFields. I'm trying to add rows to it, like this: o = Object() o.a1 = 'a1' o.a2 = 'a2' o.save() I don't set boolean values here. save() results in the following ProgrammingError: ERROR: invalid