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:
>>>
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
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
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
4 matches
Mail list logo