From c607ee949dc5541c8e946dfd7c96f7f721dd68be Mon Sep 17 00:00:00 2001 From: Beomsoo Kim Date: Mon, 13 Dec 2021 15:20:35 +0900 Subject: [PATCH] [4.0.x] Corrected example in models.DecimalField docs. Backport of 7e4a9a9f696574a18f5c98f34d5a88e254b2d394 from main --- docs/ref/models/fields.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index 281aea4660..bda42c3280 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -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)