diff options
author | Matthew Lemon <y@yulqen.org> | 2025-01-06 19:46:13 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2025-01-06 19:46:13 +0000 |
commit | ed81f85afabf7d91a9badcd38865d43af77f483a (patch) | |
tree | 4ff988022d65834ecbb0efb8ac94741a4f11916e /alphabetlearning/resources/models.py | |
parent | f1962140a4df234d1267735b939088f73084231f (diff) |
Manually reverting two commits ago - price on Resource
- the correct structure is a Price object with a relation to the
Resource
Diffstat (limited to '')
-rw-r--r-- | alphabetlearning/resources/models.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/alphabetlearning/resources/models.py b/alphabetlearning/resources/models.py index f5c3223..3f4ee8c 100644 --- a/alphabetlearning/resources/models.py +++ b/alphabetlearning/resources/models.py @@ -38,13 +38,13 @@ DESC_HELP_TEXT = """ class Resource(models.Model): name = models.CharField(max_length=255, null=False) stripe_product_id = models.CharField(max_length=100) - price = models.DecimalField( - max_digits=6, - decimal_places=2, - default=0.00, - null=False, - blank=False, - ) + # price = models.DecimalField( + # max_digits=6, + # decimal_places=2, + # default=0.00, + # null=False, + # blank=False, + # ) thumbnail_filenames = models.JSONField( null=False, verbose_name="Thumbnail filenames", |