aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/resources/models.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-09-08 13:59:10 +0100
committerMatthew Lemon <y@yulqen.org>2024-09-08 13:59:10 +0100
commitdb531eaa027d2abcfcceabfef4b8aa9dc5ca1e5d (patch)
tree47dc0044d1a50c8ffbe689ab9f09ed3bda296ae8 /pyblackbird_cc/resources/models.py
parent50c7d5b46a9e25390ab4c4ff5dcb944a12df2bef (diff)
wip: implementing checkout
- also some formatting changes
Diffstat (limited to 'pyblackbird_cc/resources/models.py')
-rw-r--r--pyblackbird_cc/resources/models.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/pyblackbird_cc/resources/models.py b/pyblackbird_cc/resources/models.py
index f938cb4..16186fa 100644
--- a/pyblackbird_cc/resources/models.py
+++ b/pyblackbird_cc/resources/models.py
@@ -34,6 +34,13 @@ DESC_HELP_TEXT = """
# Create your models here.
class Resource(models.Model):
name = models.CharField(max_length=255, null=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",