I have a project with many DecimalFields that display in over 300 templates. I would like these decimal fields to be normalized. I don't care about the precession or something else:
decimal.Decimal("10.0000").normalize()
I did not find a way to change the default rendering system. I know that in my templates I can use humanize and floatformat filter. But I need a solution that does not mean editing all these files, even if I could write a shell script.
thank
source
share