Re: models.fields.Field default value rational

2009-06-30 Thread Tom Evans
On Mon, 2009-06-29 at 14:12 -0700, Rodrigue wrote: > Hi all, > > I came across a behaviour that somewhat surprised me on the model > fields. Namely, if you have a Field with no default value, an empty > value for that field is likely to be turned into the empty string by > Field.get_default. > >

models.fields.Field default value rational

2009-06-29 Thread Rodrigue
Hi all, I came across a behaviour that somewhat surprised me on the model fields. Namely, if you have a Field with no default value, an empty value for that field is likely to be turned into the empty string by Field.get_default. I came across this behaviour writing unit tests for an applicatioi