This commit is contained in:
Kevin 2023-02-10 13:34:01 +00:00
Родитель 82832715c1
Коммит 87a4d66198
4 изменённых файлов: 25 добавлений и 2 удалений

Просмотреть файл

@ -0,0 +1,22 @@
# Generated by Django 3.2.16 on 2023-02-10 12:09
from django.db import migrations
import networkapi.wagtailpages.pagemodels.customblocks.video_block
import wagtail.blocks
import wagtail.fields
import wagtail.images.blocks
class Migration(migrations.Migration):
dependencies = [
('mozfest', '0024_wagtail_3_upgrade'),
]
operations = [
migrations.AlterField(
model_name='mozfesthomepage',
name='banner_video',
field=wagtail.fields.StreamField([('CMS_video', networkapi.wagtailpages.pagemodels.customblocks.video_block.WagtailVideoChooserBlock()), ('external_video', wagtail.blocks.StructBlock([('video_url', wagtail.blocks.URLBlock(help_text='For YouTube: go to your YouTube video and click “Share,” then “Embed,” and then copy and paste the provided URL only. For example: https://www.youtube.com/embed/3FIVXBawyQw For Vimeo: follow similar steps to grab the embed URL. For example: https://player.vimeo.com/video/9004979')), ('thumbnail', wagtail.images.blocks.ImageChooserBlock(help_text='The image to show before the video is played.'))]))], blank=True, help_text='The video to play when users click "Watch Video". This is only shown on the new Hero.', null=True, use_json_field=True),
),
]

Просмотреть файл

@ -211,6 +211,7 @@ class MozfestHomepage(MozfestPrimaryPage):
help_text='The video to play when users click "Watch Video". This is ' "only shown on the new Hero.",
blank=True,
null=True,
use_json_field=True,
)
subpage_types = [

Просмотреть файл

@ -24,7 +24,7 @@ pygit2==1.11.1
python-slugify
requests
social-auth-app-django
wagtail==3.0.3
wagtail==4.0
wagtail-color-panel
wagtail-factories
wagtail-localize==1.3.3

Просмотреть файл

@ -233,7 +233,7 @@ urllib3[secure]==1.26.8
# requests
# scout-apm
# sentry-sdk
wagtail==3.0.3
wagtail==4.0
# via
# -r requirements.in
# wagtail-color-panel