浏览代码

Fix (450): Updated help text for featured section titles to reflect their p… (#523)

* Fix: Updated help text for featured section titles to reflect their purpose

* Add migration for homepage featured section help text changes

---------

Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
Gaurav Bisht 3 周之前
父节点
当前提交
fad0a2ce57
共有 2 个文件被更改,包括 31 次插入3 次删除
  1. 28 0
      bakerydemo/base/migrations/0025_homepage_featured_help_text.py
  2. 3 3
      bakerydemo/base/models.py

+ 28 - 0
bakerydemo/base/migrations/0025_homepage_featured_help_text.py

@@ -0,0 +1,28 @@
+# Generated by Django 5.2.3 on 2025-06-27 16:43
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('base', '0024_alter_formpage_body_alter_gallerypage_body_and_more'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='homepage',
+            name='featured_section_1_title',
+            field=models.CharField(blank=True, help_text='Title to display above the featured section 1', max_length=255),
+        ),
+        migrations.AlterField(
+            model_name='homepage',
+            name='featured_section_2_title',
+            field=models.CharField(blank=True, help_text='Title to display above the featured section 2', max_length=255),
+        ),
+        migrations.AlterField(
+            model_name='homepage',
+            name='featured_section_3_title',
+            field=models.CharField(blank=True, help_text='Title to display above the featured section 3', max_length=255),
+        ),
+    ]

+ 3 - 3
bakerydemo/base/models.py

@@ -326,7 +326,7 @@ class HomePage(Page):
     # Each list their children items that we access via the children function
     # that we define on the individual Page models e.g. BlogIndexPage
     featured_section_1_title = models.CharField(
-        blank=True, max_length=255, help_text="Title to display above the promo copy"
+        blank=True, max_length=255, help_text="Title to display above the featured section 1"
     )
     featured_section_1 = models.ForeignKey(
         "wagtailcore.Page",
@@ -340,7 +340,7 @@ class HomePage(Page):
     )
 
     featured_section_2_title = models.CharField(
-        blank=True, max_length=255, help_text="Title to display above the promo copy"
+        blank=True, max_length=255, help_text="Title to display above the featured section 2"
     )
     featured_section_2 = models.ForeignKey(
         "wagtailcore.Page",
@@ -354,7 +354,7 @@ class HomePage(Page):
     )
 
     featured_section_3_title = models.CharField(
-        blank=True, max_length=255, help_text="Title to display above the promo copy"
+        blank=True, max_length=255, help_text="Title to display above the featured section 3"
     )
     featured_section_3 = models.ForeignKey(
         "wagtailcore.Page",