-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into renovate/formik-2.x
- Loading branch information
Showing
74 changed files
with
2,328 additions
and
1,017 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
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
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
16 changes: 16 additions & 0 deletions
16
cms/management/commands/create_common_child_page_for_external_courses.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,16 @@ | ||
"""Management command to create How You Will Learn and B2B sections in external course pages""" | ||
|
||
from django.core.management.base import BaseCommand | ||
|
||
from cms.models import ExternalCoursePage | ||
from cms.wagtail_hooks import create_common_child_pages_for_external_courses | ||
|
||
|
||
class Command(BaseCommand): | ||
"""Backfills How You Will Learn and B2B sections to external course pages""" | ||
|
||
help = __doc__ | ||
|
||
def handle(self, *args, **options): # noqa: ARG002 | ||
for page in ExternalCoursePage.objects.all(): | ||
create_common_child_pages_for_external_courses(None, page) |
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,54 @@ | ||
# Generated by Django 4.2.16 on 2024-12-04 15:27 | ||
|
||
import django.db.models.deletion | ||
import wagtail.fields | ||
from django.db import migrations, models | ||
|
||
import cms.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("wagtailcore", "0089_log_entry_data_json_null_to_object"), | ||
("cms", "0072_add_hybrid_courseware_format_option"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="CourseOverviewPage", | ||
fields=[ | ||
( | ||
"page_ptr", | ||
models.OneToOneField( | ||
auto_created=True, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
parent_link=True, | ||
primary_key=True, | ||
serialize=False, | ||
to="wagtailcore.page", | ||
), | ||
), | ||
( | ||
"heading", | ||
models.CharField( | ||
blank=True, | ||
help_text="The Heading to show in this section.", | ||
max_length=255, | ||
null=True, | ||
), | ||
), | ||
( | ||
"overview", | ||
wagtail.fields.RichTextField( | ||
blank=True, | ||
help_text="An overview to provide additional context or information about the course", | ||
null=True, | ||
), | ||
), | ||
], | ||
options={ | ||
"verbose_name": "Course Overview", | ||
}, | ||
bases=(cms.models.DisableSitemapURLMixin, "wagtailcore.page"), | ||
), | ||
] |
Oops, something went wrong.