Skip to content

Commit

Permalink
Added required arguments to DecimalField model example (#1376)
Browse files Browse the repository at this point in the history
  • Loading branch information
Per Lundberg committed May 14, 2021
1 parent 04e9be7 commit 2169f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/usage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Let's start with our model::

class Product(models.Model):
name = models.CharField(max_length=255)
price = models.DecimalField()
price = models.DecimalField(max_digits=5, decimal_places=2)
description = models.TextField()
release_date = models.DateField()
manufacturer = models.ForeignKey(Manufacturer)
Expand Down

0 comments on commit 2169f76

Please sign in to comment.