mirror of
https://github.com/django/django.git
synced 2025-07-07 11:19:12 +00:00
[4.0.x] Corrected example in models.DecimalField docs.
Backport of 7e4a9a9f696574a18f5c98f34d5a88e254b2d394 from main
This commit is contained in:
parent
e39e5fa8e6
commit
c607ee949d
@ -731,7 +731,7 @@ Has two **required** arguments:
|
||||
|
||||
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::
|
||||
|
||||
models.DecimalField(..., max_digits=5, decimal_places=2)
|
||||
|
Loading…
x
Reference in New Issue
Block a user