From e7ca9c7824547a310f3bbf8f916ffcb7701027e4 Mon Sep 17 00:00:00 2001 From: Kevin howbrook Date: Wed, 13 Dec 2023 12:54:30 +0000 Subject: [PATCH] Format code --- network-api/networkapi/mozfest/customblocks/stats_block.py | 2 +- .../mozfest/migrations/0031_adds_mozfest_stats_block.py | 2 +- network-api/networkapi/mozfest/models.py | 1 + network-api/networkapi/utility/faker/streamfield_provider.py | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/network-api/networkapi/mozfest/customblocks/stats_block.py b/network-api/networkapi/mozfest/customblocks/stats_block.py index 35810336eee..5aa73a23898 100644 --- a/network-api/networkapi/mozfest/customblocks/stats_block.py +++ b/network-api/networkapi/mozfest/customblocks/stats_block.py @@ -12,4 +12,4 @@ class MozfestStatisticsBlock(blocks.StructBlock): class Meta: icon = "placeholder" template = "fragments/blocks/mozfest_stats_block.html" - label = "Mozfest Stats Block" + label = "Stats Block" diff --git a/network-api/networkapi/mozfest/migrations/0031_adds_mozfest_stats_block.py b/network-api/networkapi/mozfest/migrations/0031_adds_mozfest_stats_block.py index 72dae06f88d..9f671b61f42 100644 --- a/network-api/networkapi/mozfest/migrations/0031_adds_mozfest_stats_block.py +++ b/network-api/networkapi/mozfest/migrations/0031_adds_mozfest_stats_block.py @@ -16,7 +16,7 @@ class Migration(migrations.Migration): dependencies = [ - ("mozfest", "0031_adds_mozfest_card_grid_block"), + ("mozfest", "0030_adds_new_banner_fields"), ] operations = [ diff --git a/network-api/networkapi/mozfest/models.py b/network-api/networkapi/mozfest/models.py index e00fda891c7..f537edeca6a 100644 --- a/network-api/networkapi/mozfest/models.py +++ b/network-api/networkapi/mozfest/models.py @@ -5,6 +5,7 @@ from wagtail.models import Locale, Page from wagtail_localize.fields import SynchronizedField, TranslatableField +from networkapi.mozfest import customblocks as mozfest_blocks from networkapi.wagtailpages.models import ( FoundationBannerInheritanceMixin, FoundationMetadataPageMixin, diff --git a/network-api/networkapi/utility/faker/streamfield_provider.py b/network-api/networkapi/utility/faker/streamfield_provider.py index 84c6a7e5b77..850ab65c01a 100644 --- a/network-api/networkapi/utility/faker/streamfield_provider.py +++ b/network-api/networkapi/utility/faker/streamfield_provider.py @@ -293,6 +293,7 @@ def generate_mozfest_stats_block_field(): return generate_field("mozfest_stats_block", {"statistics": statistics}) + def generate_pulse_listing_field(): return generate_field( "pulse_listing",