From d754b2554b2fcb9dd617a36637469129bf7a3ad0 Mon Sep 17 00:00:00 2001 From: Shweta Sahu Date: Wed, 4 Mar 2026 21:15:40 +0530 Subject: [PATCH 1/2] Fix duplicated help_text for featured sections on HomePage --- ...epage_featured_section_1_title_and_more.py | 40 +++++++++++++++++++ bakerydemo/base/models.py | 6 +-- 2 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 bakerydemo/base/migrations/0027_alter_homepage_featured_section_1_title_and_more.py diff --git a/bakerydemo/base/migrations/0027_alter_homepage_featured_section_1_title_and_more.py b/bakerydemo/base/migrations/0027_alter_homepage_featured_section_1_title_and_more.py new file mode 100644 index 000000000..88d827d62 --- /dev/null +++ b/bakerydemo/base/migrations/0027_alter_homepage_featured_section_1_title_and_more.py @@ -0,0 +1,40 @@ +# Generated by Django 6.0.2 on 2026-03-04 15:42 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("base", "0026_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="Heading for the first featured section", + max_length=255, + ), + ), + migrations.AlterField( + model_name="homepage", + name="featured_section_2_title", + field=models.CharField( + blank=True, + help_text="Heading for the second featured section", + max_length=255, + ), + ), + migrations.AlterField( + model_name="homepage", + name="featured_section_3_title", + field=models.CharField( + blank=True, + help_text="Heading for the third featured section", + max_length=255, + ), + ), + ] diff --git a/bakerydemo/base/models.py b/bakerydemo/base/models.py index dfd73147c..ae0b12cb6 100644 --- a/bakerydemo/base/models.py +++ b/bakerydemo/base/models.py @@ -328,7 +328,7 @@ class HomePage(Page): featured_section_1_title = models.CharField( blank=True, max_length=255, - help_text="Title to display above the featured section 1", + help_text="Heading for the first featured section", ) featured_section_1 = models.ForeignKey( "wagtailcore.Page", @@ -344,7 +344,7 @@ class HomePage(Page): featured_section_2_title = models.CharField( blank=True, max_length=255, - help_text="Title to display above the featured section 2", + help_text="Heading for the second featured section", ) featured_section_2 = models.ForeignKey( "wagtailcore.Page", @@ -360,7 +360,7 @@ class HomePage(Page): featured_section_3_title = models.CharField( blank=True, max_length=255, - help_text="Title to display above the featured section 3", + help_text="Heading for the third featured section", ) featured_section_3 = models.ForeignKey( "wagtailcore.Page", From 5985b3eb4274ce7b1e82d9d19df368266acbaf41 Mon Sep 17 00:00:00 2001 From: Thibaud Colas Date: Tue, 10 Mar 2026 16:16:31 +0000 Subject: [PATCH 2/2] Update existing migration --- .../0025_homepage_featured_help_text.py | 6 +-- ...epage_featured_section_1_title_and_more.py | 40 ------------------- 2 files changed, 3 insertions(+), 43 deletions(-) delete mode 100644 bakerydemo/base/migrations/0027_alter_homepage_featured_section_1_title_and_more.py diff --git a/bakerydemo/base/migrations/0025_homepage_featured_help_text.py b/bakerydemo/base/migrations/0025_homepage_featured_help_text.py index 1d8c8f5e5..917601996 100644 --- a/bakerydemo/base/migrations/0025_homepage_featured_help_text.py +++ b/bakerydemo/base/migrations/0025_homepage_featured_help_text.py @@ -15,7 +15,7 @@ class Migration(migrations.Migration): name="featured_section_1_title", field=models.CharField( blank=True, - help_text="Title to display above the featured section 1", + help_text="Heading for the first featured section", max_length=255, ), ), @@ -24,7 +24,7 @@ class Migration(migrations.Migration): name="featured_section_2_title", field=models.CharField( blank=True, - help_text="Title to display above the featured section 2", + help_text="Heading for the second featured section", max_length=255, ), ), @@ -33,7 +33,7 @@ class Migration(migrations.Migration): name="featured_section_3_title", field=models.CharField( blank=True, - help_text="Title to display above the featured section 3", + help_text="Heading for the third featured section", max_length=255, ), ), diff --git a/bakerydemo/base/migrations/0027_alter_homepage_featured_section_1_title_and_more.py b/bakerydemo/base/migrations/0027_alter_homepage_featured_section_1_title_and_more.py deleted file mode 100644 index 88d827d62..000000000 --- a/bakerydemo/base/migrations/0027_alter_homepage_featured_section_1_title_and_more.py +++ /dev/null @@ -1,40 +0,0 @@ -# Generated by Django 6.0.2 on 2026-03-04 15:42 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ("base", "0026_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="Heading for the first featured section", - max_length=255, - ), - ), - migrations.AlterField( - model_name="homepage", - name="featured_section_2_title", - field=models.CharField( - blank=True, - help_text="Heading for the second featured section", - max_length=255, - ), - ), - migrations.AlterField( - model_name="homepage", - name="featured_section_3_title", - field=models.CharField( - blank=True, - help_text="Heading for the third featured section", - max_length=255, - ), - ), - ]