Hi, I am having a strange problem with floatformat (filter) and I
wonder if anyone else has seen it.

I am using google app engine and am storing decimal.Decimal objects in
the datastore that I am displaying in a template as money values so I
am doing foo.methodThatReturnsDecimal|floatformat:2.

The problem is that it doesn't work... but it does work if I open up a
shell... I don't understand why. I was wondering if it could be to do
with the django implementation of decimal

The behaviour I am seeing is: Decimal("10") passed to floatformat:2
displays on the page as "10". Where I expect to see "10.00".

Does anyone have any ideas what might be going on?

j

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to