Re: surprise when initializing DecimalField with a string value

2008-09-03 Thread akaihola
Jacob's comment on #django-dev: > that's been discussed ad-nauseum in the past. models don't > have __setattr__ hooks for speed, so you can say > "model.intfield = "Fish"" for all Django cares. > [...] it's a well-known problem, but one without a "good" fix. > I think model validation will prob

surprise when initializing DecimalField with a string value

2008-09-01 Thread akaihola
According to the backwards incompatible changes wiki page: > you must either store a python decimal value in the model attribute or a > string (which will then be converted to a decimal) But what is "then" in "will then be converted"? It appears that the conversion doesn't take place when initi