aboutsummaryrefslogtreecommitdiffstats
path: root/pyblackbird_cc/resources/models.py
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-05-16 12:36:44 +0100
committerMatthew Lemon <y@yulqen.org>2024-05-16 12:36:44 +0100
commit1e03df132dc263baf3434aa6daf47b373e564377 (patch)
tree42dae785a782418fd2b71b11ff4fb59acdfce8a2 /pyblackbird_cc/resources/models.py
parented4f9bc53f52aaf3957d30658626a6ff794adcac (diff)
wip: markdown implemented for description field but working on help_text
Diffstat (limited to 'pyblackbird_cc/resources/models.py')
-rw-r--r--pyblackbird_cc/resources/models.py18
1 files changed, 17 insertions, 1 deletions
diff --git a/pyblackbird_cc/resources/models.py b/pyblackbird_cc/resources/models.py
index 6a279dd..5a03454 100644
--- a/pyblackbird_cc/resources/models.py
+++ b/pyblackbird_cc/resources/models.py
@@ -16,6 +16,17 @@ AGE_RANGE_CHOICES = [
("Age not applicable", "Age not applicable"),
]
+DESC_HELP_TEXT = """
+ <strong>Markdown acceptable here!</strong>This is your opportunity to clearly explain what
+ your resource is all about! It’s worth remembering that you are using the space to
+ communicate to two different audiences. Firstly, think about what fellow teachers
+ would like to know, such as exactly what the resource contains and how it could be used in
+ the classroom. Secondly, the words you include on this page are also talking to internal and
+ external search engines. External search engines, like Google, show the first 155 characters
+ of the resource description, so make sure you take advantage
+ of these characters by using lots of relevant keywords as part of an enticing pitch.
+"""
+
# Create your models here.
class Resource(models.Model):
@@ -39,7 +50,12 @@ class Resource(models.Model):
blank=True,
related_name="additional_resource_category",
)
- description = models.TextField(max_length=1000, null=False, blank=False)
+ description = models.TextField(
+ max_length=5000,
+ null=False,
+ blank=False,
+ help_text=DESC_HELP_TEXT,
+ )
age_range = models.CharField(
max_length=20,
null=False,