Skip to content

Commit

Permalink
Modification to wagtail page description subtitle. (#868)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicopicchio authored Jan 15, 2025
1 parent 07df9d9 commit 7522c70
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions src/content/migrations/0045_alter_contentpage_description.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Generated by Django 5.1.4 on 2025-01-15 14:25

import content.validators
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
("content", "0044_alter_contentpage_description"),
]

operations = [
migrations.AlterField(
model_name="contentpage",
name="description",
field=models.TextField(
blank=True,
help_text="This should not be more than 30 words.",
null=True,
validators=[content.validators.validate_description_word_count],
),
),
]
2 changes: 1 addition & 1 deletion src/content/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ class ContentPage(SearchFieldsMixin, BasePage):
description = models.TextField(
blank=True,
null=True,
help_text="Describe your event in 30 words.",
help_text="This should not be more than 30 words.",
validators=[validate_description_word_count],
)

Expand Down

0 comments on commit 7522c70

Please sign in to comment.