mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Corrected example in models.DecimalField docs.
This commit is contained in:
@@ -724,7 +724,7 @@ Has two **required** arguments:
|
|||||||
|
|
||||||
The number of decimal places to store with the number.
|
The number of decimal places to store with the number.
|
||||||
|
|
||||||
For example, to store numbers up to ``999`` with a resolution of 2 decimal
|
For example, to store numbers up to ``999.99`` with a resolution of 2 decimal
|
||||||
places, you'd use::
|
places, you'd use::
|
||||||
|
|
||||||
models.DecimalField(..., max_digits=5, decimal_places=2)
|
models.DecimalField(..., max_digits=5, decimal_places=2)
|
||||||
|
|||||||
Reference in New Issue
Block a user