Decimal numbers are by default rounded very unexpectedly, in order to make it work normally, it is needed to use ROUND_HALF_UP
option.
>>>
Decimal doesn't have anything to do with Django, they are part of the standard python library. The getcontext
function returns the context of the current thread, so if you're not doing anything funky, every request will be executed in one thread. That basically mean that setting the option in the settings.py
file should be enough.