I have declared below field in models.py.
marks = models.DecimalField(max_digits=2, decimal_places=2, default=3.0)
At backend table structure is :
| Field | Type | Null | Key | Default | Extra |
| marks | float(3,1) | NO | | 1.0 | |
So here default value 3.0 will try to save as 3.00 (decimal places=2) at backend and there will be no space to store left side value 3 right?
For above case,when I give max_digits=3 or decimal_places=1 it is working.
Please help me, whatis exactly happening here from django to mysql db flow?