diff options
author | Matthew Lemon <y@yulqen.org> | 2024-05-26 16:49:34 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-05-26 16:49:34 +0100 |
commit | 37698a2ebba6ea366b93f70f6ad87336b302b70c (patch) | |
tree | 83bc29a8b9574cbf6091d8afc7cdf5ef7a56d211 /pyblackbird_cc/resources/models.py | |
parent | b3c7d985a50a38fcb19d8e9f91b5b719d43e31a4 (diff) |
Better presentation of the feature resources
Diffstat (limited to '')
-rw-r--r-- | pyblackbird_cc/resources/models.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pyblackbird_cc/resources/models.py b/pyblackbird_cc/resources/models.py index 44a5024..0d1bbe3 100644 --- a/pyblackbird_cc/resources/models.py +++ b/pyblackbird_cc/resources/models.py @@ -56,6 +56,12 @@ class Resource(models.Model): blank=False, help_text=DESC_HELP_TEXT, ) + card_description = models.TextField( + max_length=1000, + blank=True, + default="", + help_text="If you enter text here, it will be used in the 'card' description box on the home page. Max 1000 characters.", + ) age_range = models.CharField( max_length=20, null=False, @@ -74,7 +80,7 @@ class Resource(models.Model): ], ) feature_slot = models.IntegerField( - choices=((1, 1), (2, 2), (3, 3)), unique=True, null=True, blank=True + choices=((0, 0), (1, 1), (2, 2), (3, 3)), unique=True, null=True, blank=True, default=0, ) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) |