Skip to content

Commit aee56cf

Browse files
authored
Wagtail upgrade to 6.3 + make Leadership editing UI collapsed by default (#16071)
* Ensure Leadership page's blocks are collapsed by default * Update to Wagtail 6.3 LTS version from 6.1.3 Also pick up some other subdeps along the way. Note that Wagtail 6.2 added a Description field to images, which we will need template changes to use, if we want to use it.
1 parent 6bc858c commit aee56cf

File tree

7 files changed

+108
-53
lines changed

7 files changed

+108
-53
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# This Source Code Form is subject to the terms of the Mozilla Public
2+
# License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
4+
5+
# Generated by Django 4.2.19 on 2025-03-06 12:53
6+
7+
from django.db import migrations, models
8+
9+
10+
class Migration(migrations.Migration):
11+
dependencies = [
12+
("cms", "0002_bedrockimage_bedrockrendition"),
13+
]
14+
15+
operations = [
16+
migrations.AddField(
17+
model_name="bedrockimage",
18+
name="description",
19+
field=models.CharField(blank=True, default="", max_length=255, verbose_name="description"),
20+
),
21+
]

bedrock/mozorg/models.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@ class LeadershipPage(AbstractBedrockCMSPage):
6666
max_count = 1 # Ensure there's only one instance of this page
6767
subpage_types = [] # This page type cannot have any children
6868

69-
leadership_sections = StreamField([("section", LeadershipSectionBlock())], blank=True, null=True)
69+
leadership_sections = StreamField(
70+
[("section", LeadershipSectionBlock())],
71+
blank=True,
72+
null=True,
73+
collapsed=True,
74+
)
7075

7176
content_panels = AbstractBedrockCMSPage.content_panels + [
7277
FieldPanel("leadership_sections"),
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# This Source Code Form is subject to the terms of the Mozilla Public
2+
# License, v. 2.0. If a copy of the MPL was not distributed with this
3+
# file, You can obtain one at https://mozilla.org/MPL/2.0/.
4+
5+
# Generated by Django 4.2.19 on 2025-03-06 12:53
6+
7+
import django.db.models.deletion
8+
from django.db import migrations, models
9+
10+
11+
class Migration(migrations.Migration):
12+
dependencies = [
13+
("wagtailcore", "0094_alter_page_locale"),
14+
("products", "0003_alter_vpncalltoactionsnippet_options"),
15+
]
16+
17+
operations = [
18+
migrations.AlterField(
19+
model_name="vpncalltoactionsnippet",
20+
name="locale",
21+
field=models.ForeignKey(
22+
editable=False,
23+
on_delete=django.db.models.deletion.PROTECT,
24+
related_name="+",
25+
to="wagtailcore.locale",
26+
verbose_name="locale",
27+
),
28+
),
29+
]

requirements/dev.txt

+27-27
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ boto3==1.37.8 \
6969
--hash=sha256:9448f4a079189e19c3253cfdc5b8ef6dc51a3b82431e8347a51f4c1b2d9dab42 \
7070
--hash=sha256:b9f506e08c9f54687d6c073ef1c550a24a62cc2d1e0bc7cda9f13112a38818bf
7171
# via -r requirements/prod.txt
72-
botocore==1.37.8 \
73-
--hash=sha256:a6c94f33de12f4b10b10684019e554c980469b8394c6d82448a738cbd8452cef \
74-
--hash=sha256:b5825e08dd3e25642aa22a0d7d92bf81fef1ef857117e4155f923bbccf5aba63
72+
botocore==1.37.10 \
73+
--hash=sha256:7515c8dfaaf5ba02604db9cf73c172615afee976136f31d8aec628629f24029f \
74+
--hash=sha256:ab311982a9872eeb4e71906d3e3fcd2ba331a869d0fed16836ade7ce2e58bcea
7575
# via
7676
# -r requirements/prod.txt
7777
# boto3
@@ -407,9 +407,9 @@ cryptography==44.0.2 \
407407
# mozilla-django-oidc
408408
# pyjwt
409409
# pyopenssl
410-
cssselect==1.2.0 \
411-
--hash=sha256:666b19839cfaddb9ce9d36bfe4c969132c647b92fc9088c4e23f786b30f1b3dc \
412-
--hash=sha256:da1885f0c10b60c03ed5eccbb6b68d6eff248d91976fcde348f395d54c9fd35e
410+
cssselect==1.3.0 \
411+
--hash=sha256:56d1bf3e198080cc1667e137bc51de9cadfca259f03c2d4e09037b3e01e30f0d \
412+
--hash=sha256:57f8a99424cfab289a1b6a816a43075a4b00948c86b4dcf3ef4ee7e15f7ab0c7
413413
# via pyquery
414414
curtsies==0.4.2 \
415415
--hash=sha256:6ebe33215bd7c92851a506049c720cca4cf5c192c1665c1d7a98a04c4702760e \
@@ -590,9 +590,9 @@ django-storages[google]==1.14.4 \
590590
--hash=sha256:69aca94d26e6714d14ad63f33d13619e697508ee33ede184e462ed766dc2a73f \
591591
--hash=sha256:d61930acb4a25e3aebebc6addaf946a3b1df31c803a6bf1af2f31c9047febaa3
592592
# via -r requirements/prod.txt
593-
django-taggit==5.0.1 \
594-
--hash=sha256:a0ca8a28b03c4b26c2630fd762cb76ec39b5e41abf727a7b66f897a625c5e647 \
595-
--hash=sha256:edcd7db1e0f35c304e082a2f631ddac2e16ef5296029524eb792af7430cab4cc
593+
django-taggit==6.1.0 \
594+
--hash=sha256:ab776264bbc76cb3d7e49e1bf9054962457831bd21c3a42db9138b41956e4cf0 \
595+
--hash=sha256:c4d1199e6df34125dd36db5eb0efe545b254dec3980ce5dd80e6bab3e78757c3
596596
# via
597597
# -r requirements/prod.txt
598598
# wagtail
@@ -647,9 +647,9 @@ factory-boy==3.3.3 \
647647
# via
648648
# -r requirements/dev.in
649649
# wagtail-factories
650-
faker==36.2.2 \
651-
--hash=sha256:14adc340dc8abed5264142ffafe6f1a0f99cf7a7525bc6863755efd5fbbd0692 \
652-
--hash=sha256:758bc63a26dc878fa0d76aa7639b8b65327927980ed0c3683b23bd8a5182f33f
650+
faker==37.0.0 \
651+
--hash=sha256:2598f78b76710a4ed05e197dda5235be409b4c291ba5c9c7514989cfbc7a5144 \
652+
--hash=sha256:d2e4e2a30d459a8ec0ae52a552aa51c48973cb32cf51107dee90f58a8322a880
653653
# via factory-boy
654654
filetype==1.2.0 \
655655
--hash=sha256:66b56cd6474bf41d8c54660347d37afcc3f7d1970648de365c102ef77548aadb \
@@ -676,9 +676,9 @@ glean-parser==14.5.0 \
676676
--hash=sha256:1808f13c0c29675a7bc7cf13bcc6e7c9dc57ebc830c52f8ca0603ecf3f45e964 \
677677
--hash=sha256:fe3f7a9ccdef5b51e97dac45332ba6223d4871c8d470aea5c92b9388a7f990b0
678678
# via -r requirements/prod.txt
679-
google-api-core==2.24.1 \
680-
--hash=sha256:bc78d608f5a5bf853b80bd70a795f703294de656c096c0968320830a4bc280f1 \
681-
--hash=sha256:f8b36f5456ab0dd99a1b693a40a31d1e7757beea380ad1b38faaf8941eae9d8a
679+
google-api-core==2.24.2 \
680+
--hash=sha256:810a63ac95f3c441b7c0e43d344e372887f62ce9071ba972eacf32672e072de9 \
681+
--hash=sha256:81718493daf06d96d6bc76a91c23874dbf2fac0adbbf542831b805ee6e974696
682682
# via
683683
# -r requirements/prod.txt
684684
# google-cloud-core
@@ -691,9 +691,9 @@ google-auth==2.38.0 \
691691
# google-api-core
692692
# google-cloud-core
693693
# google-cloud-storage
694-
google-cloud-core==2.4.2 \
695-
--hash=sha256:7459c3e83de7cb8b9ecfec9babc910efb4314030c56dd798eaad12c426f7d180 \
696-
--hash=sha256:a4fcb0e2fcfd4bfe963837fad6d10943754fd79c1a50097d68540b6eb3d67f35
694+
google-cloud-core==2.4.3 \
695+
--hash=sha256:1fab62d7102844b278fe6dead3af32408b1df3eb06f5c7e8634cbd40edc4da53 \
696+
--hash=sha256:5130f9f4c14b4fafdff75c79448f9495cfade0d8775facf1b09c3bf67e027f6e
697697
# via
698698
# -r requirements/prod.txt
699699
# google-cloud-storage
@@ -1457,9 +1457,9 @@ polib==1.2.0 \
14571457
# via
14581458
# -r requirements/prod.txt
14591459
# wagtail-localize
1460-
proto-plus==1.26.0 \
1461-
--hash=sha256:6e93d5f5ca267b54300880fff156b6a3386b3fa3f43b1da62e680fc0c586ef22 \
1462-
--hash=sha256:bf2dfaa3da281fc3187d12d224c707cb57214fb2c22ba854eb0c105a3fb2d4d7
1460+
proto-plus==1.26.1 \
1461+
--hash=sha256:13285478c2dcf2abb829db158e1047e2f1e8d63a077d94263c2b88b043c75a66 \
1462+
--hash=sha256:21a515a4c4c0088a773899e23c7bbade3d18f9c66c73edd4c7ee3816bc96a012
14631463
# via
14641464
# -r requirements/prod.txt
14651465
# google-api-core
@@ -2067,9 +2067,9 @@ sentry-sdk==2.22.0 \
20672067
--hash=sha256:3d791d631a6c97aad4da7074081a57073126c69487560c6f8bffcf586461de66 \
20682068
--hash=sha256:b4bf43bb38f547c84b2eadcefbe389b36ef75f3f38253d7a74d6b928c07ae944
20692069
# via -r requirements/prod.txt
2070-
setuptools==75.8.2 \
2071-
--hash=sha256:4880473a969e5f23f2a2be3646b2dfd84af9028716d398e46192f84bc36900d2 \
2072-
--hash=sha256:558e47c15f1811c1fa7adbd0096669bf76c1d3f433f58324df69f3f5ecac4e8f
2070+
setuptools==76.0.0 \
2071+
--hash=sha256:199466a166ff664970d0ee145839f5582cb9bca7a0a3a2e795b6a9cb2308e9c6 \
2072+
--hash=sha256:43b4ee60e10b0d0ee98ad11918e114c70701bc6051662a9a675a0496c1a158f4
20732073
# via
20742074
# -r requirements/prod.txt
20752075
# supervisor
@@ -2251,9 +2251,9 @@ uvloop==0.21.0 \
22512251
# via
22522252
# -r requirements/prod.txt
22532253
# granian
2254-
wagtail==6.1.3 \
2255-
--hash=sha256:8f4908ab1b6b963a8aa7adf8f0ec738cd1dc79b9816c6d5f59018f600a404378 \
2256-
--hash=sha256:b6c4d5705adf51a5e49ea416032dd0a6534588fc31c5c9a95f698e6ddec0a203
2254+
wagtail==6.3.3 \
2255+
--hash=sha256:4db952ce324b1473ff20819416c59b9166eb29863370c4f5174ebc1ab299f810 \
2256+
--hash=sha256:83c8f1b5c6307a08d940fe5e94f19342aaaafbfc51c2388e2e6f734a6bfeef0a
22572257
# via
22582258
# -r requirements/prod.txt
22592259
# wagtail-factories

requirements/docs.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,9 @@ sphinxcontrib-websupport==1.2.7 \
387387
--hash=sha256:2dc179d7f821ebd54f31f93c894ca52435ebc5364e4e4dfb0da834ac119d51fd \
388388
--hash=sha256:e322802ebfd5fe79368efd864aeb87b063566ae61911dccb2714e28a45ed7561
389389
# via -r requirements/docs.in
390-
starlette==0.46.0 \
391-
--hash=sha256:913f0798bd90ba90a9156383bcf1350a17d6259451d0d8ee27fc0cf2db609038 \
392-
--hash=sha256:b359e4567456b28d473d0193f34c0de0ed49710d75ef183a74a5ce0499324f50
390+
starlette==0.46.1 \
391+
--hash=sha256:3c88d58ee4bd1bb807c0d1acb381838afc7752f9ddaec81bbe4383611d833230 \
392+
--hash=sha256:77c74ed9d2720138b25875133f3a2dae6d854af2ec37dceb56aef370c1d8a227
393393
# via sphinx-autobuild
394394
typing-extensions==4.12.2 \
395395
--hash=sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d \

requirements/prod.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ https://github.com/mozmeao/wagtaildraftsharing/archive/refs/tags/mozmeao-0.2.0.t
5757
wagtail-localize-smartling==0.10.2
5858
wagtail-localize==1.11.3
5959
Wand==0.6.13 # For animated GIF support
60-
Wagtail==6.1.3
60+
Wagtail==6.3.3
6161
whitenoise==6.9.0

requirements/prod.txt

+21-21
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ boto3==1.37.8 \
4949
--hash=sha256:9448f4a079189e19c3253cfdc5b8ef6dc51a3b82431e8347a51f4c1b2d9dab42 \
5050
--hash=sha256:b9f506e08c9f54687d6c073ef1c550a24a62cc2d1e0bc7cda9f13112a38818bf
5151
# via -r requirements/prod.in
52-
botocore==1.37.8 \
53-
--hash=sha256:a6c94f33de12f4b10b10684019e554c980469b8394c6d82448a738cbd8452cef \
54-
--hash=sha256:b5825e08dd3e25642aa22a0d7d92bf81fef1ef857117e4155f923bbccf5aba63
52+
botocore==1.37.10 \
53+
--hash=sha256:7515c8dfaaf5ba02604db9cf73c172615afee976136f31d8aec628629f24029f \
54+
--hash=sha256:ab311982a9872eeb4e71906d3e3fcd2ba331a869d0fed16836ade7ce2e58bcea
5555
# via
5656
# boto3
5757
# s3transfer
@@ -409,9 +409,9 @@ django-storages[google]==1.14.4 \
409409
--hash=sha256:69aca94d26e6714d14ad63f33d13619e697508ee33ede184e462ed766dc2a73f \
410410
--hash=sha256:d61930acb4a25e3aebebc6addaf946a3b1df31c803a6bf1af2f31c9047febaa3
411411
# via -r requirements/prod.in
412-
django-taggit==5.0.1 \
413-
--hash=sha256:a0ca8a28b03c4b26c2630fd762cb76ec39b5e41abf727a7b66f897a625c5e647 \
414-
--hash=sha256:edcd7db1e0f35c304e082a2f631ddac2e16ef5296029524eb792af7430cab4cc
412+
django-taggit==6.1.0 \
413+
--hash=sha256:ab776264bbc76cb3d7e49e1bf9054962457831bd21c3a42db9138b41956e4cf0 \
414+
--hash=sha256:c4d1199e6df34125dd36db5eb0efe545b254dec3980ce5dd80e6bab3e78757c3
415415
# via wagtail
416416
django-treebeard==4.7.1 \
417417
--hash=sha256:846e462904b437155f76e04907ba4e48480716855f88b898df4122bdcfbd6e98 \
@@ -469,9 +469,9 @@ glean-parser==14.5.0 \
469469
--hash=sha256:1808f13c0c29675a7bc7cf13bcc6e7c9dc57ebc830c52f8ca0603ecf3f45e964 \
470470
--hash=sha256:fe3f7a9ccdef5b51e97dac45332ba6223d4871c8d470aea5c92b9388a7f990b0
471471
# via -r requirements/prod.in
472-
google-api-core==2.24.1 \
473-
--hash=sha256:bc78d608f5a5bf853b80bd70a795f703294de656c096c0968320830a4bc280f1 \
474-
--hash=sha256:f8b36f5456ab0dd99a1b693a40a31d1e7757beea380ad1b38faaf8941eae9d8a
472+
google-api-core==2.24.2 \
473+
--hash=sha256:810a63ac95f3c441b7c0e43d344e372887f62ce9071ba972eacf32672e072de9 \
474+
--hash=sha256:81718493daf06d96d6bc76a91c23874dbf2fac0adbbf542831b805ee6e974696
475475
# via
476476
# google-cloud-core
477477
# google-cloud-storage
@@ -482,9 +482,9 @@ google-auth==2.38.0 \
482482
# google-api-core
483483
# google-cloud-core
484484
# google-cloud-storage
485-
google-cloud-core==2.4.2 \
486-
--hash=sha256:7459c3e83de7cb8b9ecfec9babc910efb4314030c56dd798eaad12c426f7d180 \
487-
--hash=sha256:a4fcb0e2fcfd4bfe963837fad6d10943754fd79c1a50097d68540b6eb3d67f35
485+
google-cloud-core==2.4.3 \
486+
--hash=sha256:1fab62d7102844b278fe6dead3af32408b1df3eb06f5c7e8634cbd40edc4da53 \
487+
--hash=sha256:5130f9f4c14b4fafdff75c79448f9495cfade0d8775facf1b09c3bf67e027f6e
488488
# via google-cloud-storage
489489
google-cloud-storage==3.1.0 \
490490
--hash=sha256:944273179897c7c8a07ee15f2e6466a02da0c7c4b9ecceac2a26017cb2972049 \
@@ -1090,9 +1090,9 @@ polib==1.2.0 \
10901090
--hash=sha256:1c77ee1b81feb31df9bca258cbc58db1bbb32d10214b173882452c73af06d62d \
10911091
--hash=sha256:f3ef94aefed6e183e342a8a269ae1fc4742ba193186ad76f175938621dbfc26b
10921092
# via wagtail-localize
1093-
proto-plus==1.26.0 \
1094-
--hash=sha256:6e93d5f5ca267b54300880fff156b6a3386b3fa3f43b1da62e680fc0c586ef22 \
1095-
--hash=sha256:bf2dfaa3da281fc3187d12d224c707cb57214fb2c22ba854eb0c105a3fb2d4d7
1093+
proto-plus==1.26.1 \
1094+
--hash=sha256:13285478c2dcf2abb829db158e1047e2f1e8d63a077d94263c2b88b043c75a66 \
1095+
--hash=sha256:21a515a4c4c0088a773899e23c7bbade3d18f9c66c73edd4c7ee3816bc96a012
10961096
# via google-api-core
10971097
protobuf==5.29.3 \
10981098
--hash=sha256:0a18ed4a24198528f2333802eb075e59dea9d679ab7a6c5efb017a59004d849f \
@@ -1452,9 +1452,9 @@ sentry-sdk==2.22.0 \
14521452
--hash=sha256:3d791d631a6c97aad4da7074081a57073126c69487560c6f8bffcf586461de66 \
14531453
--hash=sha256:b4bf43bb38f547c84b2eadcefbe389b36ef75f3f38253d7a74d6b928c07ae944
14541454
# via -r requirements/prod.in
1455-
setuptools==75.8.2 \
1456-
--hash=sha256:4880473a969e5f23f2a2be3646b2dfd84af9028716d398e46192f84bc36900d2 \
1457-
--hash=sha256:558e47c15f1811c1fa7adbd0096669bf76c1d3f433f58324df69f3f5ecac4e8f
1455+
setuptools==76.0.0 \
1456+
--hash=sha256:199466a166ff664970d0ee145839f5582cb9bca7a0a3a2e795b6a9cb2308e9c6 \
1457+
--hash=sha256:43b4ee60e10b0d0ee98ad11918e114c70701bc6051662a9a675a0496c1a158f4
14581458
# via supervisor
14591459
six==1.17.0 \
14601460
--hash=sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274 \
@@ -1552,9 +1552,9 @@ uvloop==0.21.0 \
15521552
--hash=sha256:f3df876acd7ec037a3d005b3ab85a7e4110422e4d9c1571d4fc89b0fc41b6816 \
15531553
--hash=sha256:f7089d2dc73179ce5ac255bdf37c236a9f914b264825fdaacaded6990a7fb4c2
15541554
# via granian
1555-
wagtail==6.1.3 \
1556-
--hash=sha256:8f4908ab1b6b963a8aa7adf8f0ec738cd1dc79b9816c6d5f59018f600a404378 \
1557-
--hash=sha256:b6c4d5705adf51a5e49ea416032dd0a6534588fc31c5c9a95f698e6ddec0a203
1555+
wagtail==6.3.3 \
1556+
--hash=sha256:4db952ce324b1473ff20819416c59b9166eb29863370c4f5174ebc1ab299f810 \
1557+
--hash=sha256:83c8f1b5c6307a08d940fe5e94f19342aaaafbfc51c2388e2e6f734a6bfeef0a
15581558
# via
15591559
# -r requirements/prod.in
15601560
# wagtail-localize

0 commit comments

Comments
 (0)