-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow homepage sections to be editable. (#12866)
* Rename `News you can use` section to `Highlights`, enable CMS customization of homepage titles * Updated migration * Fix typo in updated linting ignore rules * Updated migration state * Update migration * Updated migration order * Update migration deps * Migration linearity update
- Loading branch information
Showing
9 changed files
with
62 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...tworkapi/wagtailpages/migrations/0166_homepagehighlights_replace_homepagenewsyoucanuse.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import django.db.models.deletion | ||
import modelcluster.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("wagtailpages", "0165_alter_articlepage_body_alter_blogpage_body_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameModel( | ||
old_name="HomepageNewsYouCanUse", | ||
new_name="HomepageHighlights", | ||
), | ||
migrations.AddField( | ||
model_name="homepage", | ||
name="ideas_title", | ||
field=models.CharField(default="Ideas", max_length=50), | ||
), | ||
migrations.AddField( | ||
model_name="homepage", | ||
name="highlights_title", | ||
field=models.CharField(default="The Highlights", max_length=50), | ||
), | ||
migrations.AlterField( | ||
model_name="homepagehighlights", | ||
name="page", | ||
field=modelcluster.fields.ParentalKey( | ||
on_delete=django.db.models.deletion.CASCADE, related_name="highlights", to="wagtailpages.homepage" | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters