Re: #5903 DecimalField returns default value as unicode string

2009-02-11 Thread Malcolm Tredinnick
On Wed, 2009-02-11 at 22:50 +0900, Russell Keith-Magee wrote: [...] > However, in this case, I'm reasonably convinced it is the right thing > to do. The list of 'ignored' types for force_unicode is essentially > the list of data types that we use for native data representations. I > can't think of

Re: #5903 DecimalField returns default value as unicode string

2009-02-11 Thread Russell Keith-Magee
On Wed, Feb 11, 2009 at 9:06 AM, Brian Rosner wrote: > > Hey all, > > I recently came across the issue described in #5903 [1] earlier. There > are two distinct patches that fix the problem, but at different > levels. My inclination is to fix this issue at the model field level > and properly over

Re: #5903 DecimalField returns default value as unicode string

2009-02-10 Thread Alex Gaynor
On Tue, Feb 10, 2009 at 7:10 PM, Alex Gaynor wrote: > > > On Tue, Feb 10, 2009 at 7:06 PM, Brian Rosner wrote: > >> >> Hey all, >> >> I recently came across the issue described in #5903 [1] earlier. There >> are two distinct patches that fix the problem, but at different >> levels. My inclinatio

Re: #5903 DecimalField returns default value as unicode string

2009-02-10 Thread Alex Gaynor
On Tue, Feb 10, 2009 at 7:06 PM, Brian Rosner wrote: > > Hey all, > > I recently came across the issue described in #5903 [1] earlier. There > are two distinct patches that fix the problem, but at different > levels. My inclination is to fix this issue at the model field level > and properly over

#5903 DecimalField returns default value as unicode string

2009-02-10 Thread Brian Rosner
Hey all, I recently came across the issue described in #5903 [1] earlier. There are two distinct patches that fix the problem, but at different levels. My inclination is to fix this issue at the model field level and properly override get_default. My feeling is that allowing Decimal objects to pa

Re: DecimalField returns default value as unicode string.

2007-11-08 Thread Collin Grady
[EMAIL PROTECTED] said the following: > Not sure why, but when I tried to submit a ticked for this it was > rejected repeatedly as suspected spam. If you register for a trac account it should avoid that issue. -- Collin Grady Academic politics is the most vicious and bitter form of politics, b

DecimalField returns default value as unicode string.

2007-11-08 Thread [EMAIL PROTECTED]
Right now (unless I misread it) Django returns any non-callable default value using "force_unicode". This means that if you have a decimal field with a default value you have to save the model, and then retrieve it back from the database for that model to return the correct default value. I think