#10513: Template filter "floatformat" does not support __float__ anymore. -----------------------------+---------------------------------------------- Reporter: sebastian_noack | Owner: nobody Status: new | Milestone: Component: Template system | Version: 1.0 Keywords: | Stage: Unreviewed Has_patch: 0 | -----------------------------+---------------------------------------------- Since django 1.0 the template filter ''floatformat'', converts the value to unicode and after it to Decimal. So you can't pass anymore objects to floatformat, which provides a __float__ method but not a __unicode__ or __str__ method.
-- Ticket URL: <http://code.djangoproject.com/ticket/10513> Django <http://code.djangoproject.com/> The Web framework for perfectionists with deadlines. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---