Template filter "floatformat" does not support __float__ anymore.
|Reported by:||sebastian_noack||Owned by:||Alex|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.
Change History (10)
comment:1 Changed 6 years ago by ikelly
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted