I am looking for a way to limit the FloatField
in Django to 2 decimal places. Has anyone got a clue of how this could be done without having to use a DecimalField
?
I tried decimal_places=2
, but this just gave me a migration error within the float field. So, I am thinking this method must only work within DecimalFields.