-
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.
Merge branch 'main' into group-listing-block-link-update
- Loading branch information
Showing
25 changed files
with
40,800 additions
and
54 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
3,526 changes: 3,526 additions & 0 deletions
3,526
network-api/networkapi/donate/migrations/0015_update_videoblock_with_linkblock.py
Large diffs are not rendered by default.
Oops, something went wrong.
3,699 changes: 3,699 additions & 0 deletions
3,699
network-api/networkapi/donate/migrations/0016_update_imageteaserblock_with_linkblock.py
Large diffs are not rendered by default.
Oops, something went wrong.
4,457 changes: 4,457 additions & 0 deletions
4,457
network-api/networkapi/mozfest/migrations/0055_update_videoblock_with_linkblock.py
Large diffs are not rendered by default.
Oops, something went wrong.
4,630 changes: 4,630 additions & 0 deletions
4,630
network-api/networkapi/mozfest/migrations/0056_update_imageteaserblock_with_linkblock.py
Large diffs are not rendered by default.
Oops, something went wrong.
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
39 changes: 39 additions & 0 deletions
39
network-api/networkapi/wagtailpages/factory/app_install_page.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,39 @@ | ||
from factory import Faker, SubFactory | ||
from wagtail_factories import PageFactory | ||
|
||
from networkapi.utility.faker.helpers import reseed | ||
from networkapi.wagtailpages import models as pagemodels | ||
from networkapi.wagtailpages.factory import image_factory | ||
from networkapi.wagtailpages.models import AppInstallPage | ||
|
||
from .petition import PetitionFactory | ||
|
||
|
||
class AppInstallPageFactory(PageFactory): | ||
class Meta: | ||
model = AppInstallPage | ||
exclude = ( | ||
"title_text", | ||
"header_text", | ||
"header", | ||
) | ||
|
||
title = "Regrets Reporter Page" | ||
slug = "regretsreporter" | ||
hero_heading = Faker("text", max_nb_chars=50) | ||
hero_subheading = Faker("text", max_nb_chars=50) | ||
hero_background = SubFactory(image_factory.ImageFactory) | ||
download_buttons = Faker("streamfield", fields=["app_install_download_button"] * 2) | ||
cta = SubFactory(PetitionFactory) | ||
body = Faker("streamfield", fields=["header", "paragraph", "image", "spacer", "image_text", "quote"]) | ||
|
||
|
||
def generate(seed): | ||
reseed(seed) | ||
|
||
print("Generating PNI Homepage") | ||
AppInstallPageFactory.create( | ||
parent=pagemodels.Homepage.objects.first(), | ||
title="App Install Page", | ||
slug="app-install-page", | ||
) |
23 changes: 23 additions & 0 deletions
23
...api/networkapi/wagtailpages/migrations/0144_alter_appinstallpage_hero_heading_and_more.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,23 @@ | ||
# Generated by Django 4.2.11 on 2024-07-02 19:55 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("wagtailpages", "0143_delete_youtuberegretsreporterextensionpage"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="appinstallpage", | ||
name="hero_heading", | ||
field=models.CharField(help_text="Hero story headline", max_length=250), | ||
), | ||
migrations.AlterField( | ||
model_name="appinstallpage", | ||
name="hero_subheading", | ||
field=models.CharField(blank=True, help_text="Hero story subheadline", max_length=250), | ||
), | ||
] |
17,007 changes: 17,007 additions & 0 deletions
17,007
network-api/networkapi/wagtailpages/migrations/0145_update_videoblock_with_linkblock.py
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.