Re: Cannot convert float to Decimal. First convert the float to a string Error

2010-01-22 Thread Cummins Group
It workedThanks for the help.. On Fri, Jan 22, 2010 at 2:05 PM, Cummins Group wrote: > The field in the model is Floatfield...Now what must be the problem... > > > On Fri, Jan 22, 2010 at 12:07 PM, Karen Tracey wrote: > >> On Fri, Jan 22, 2010 at 1:13 AM, grp25 wrote: >> >>> got error: >>>

Re: Cannot convert float to Decimal. First convert the float to a string Error

2010-01-22 Thread Cummins Group
The field in the model is Floatfield...Now what must be the problem... On Fri, Jan 22, 2010 at 12:07 PM, Karen Tracey wrote: > On Fri, Jan 22, 2010 at 1:13 AM, grp25 wrote: > >> got error: >> Cannot convert float to Decimal. First convert the float to a string >> >> our code is: >> usr.ratings

Re: Cannot convert float to Decimal. First convert the float to a string Error

2010-01-21 Thread Karen Tracey
On Fri, Jan 22, 2010 at 1:13 AM, grp25 wrote: > got error: > Cannot convert float to Decimal. First convert the float to a string > > our code is: > usr.ratings=usr.ratings-0.5 > usr.save() > > 'usr.ratings' is a float field. > Are you absolutely sure of that? It rather sounds like usr.ratings

Cannot convert float to Decimal. First convert the float to a string Error

2010-01-21 Thread grp25
got error: Cannot convert float to Decimal. First convert the float to a string our code is: usr.ratings=usr.ratings-0.5 usr.save() 'usr.ratings' is a float field. Help resolve it... -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to