From c8d87930bd1b6fa949f62e0c8f94aca5a6d0a2bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Wirtel?= Date: Sat, 21 Nov 2026 15:56:20 +0100 Subject: [PATCH] chore(deps): upgrade Wagtail from 7.3.4 to 8.1 The 7.3 branch is no longer maintained and is affected by security advisories that are only fixed in 7.0.10, 7.4.4 and 8.0.1+: - GHSA-4pg7-87vv-vrh7 (high): stored XSS via v3 write API - GHSA-3xgh-xc8p-9h54: Pages admin API ancestor restrictions - GHSA-g6cr-c9h3-6j2m: formula injection via XLSX export - GHSA-jm43-45cc-q9rr: cross-collection authorization bypass Lock changes: wagtail 8.1, draftjs-exporter 5.2.0 -> 7.3.1, modelsearch 1.2.2 -> 1.3.2, new django-ninja and swapper. Update the Wagtail version mentioned in the docs. Co-Authored-By: Claude Opus 5.5 --- CLAUDE.md | 4 ++-- DEVELOPMENT.md | 2 +- README.md | 2 +- pyproject.toml | 2 +- uv.lock | 45 +++++++++++++++++++++++++++++++++++---------- 5 files changed, 40 insertions(+), 15 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 1c15c96..2ecff57 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -4,7 +4,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co ## Project Overview -This is the Python Ireland (https://python.ie) website, built with Django 6.0 and Wagtail CMS 7.3. It manages content for the Python Ireland community including meetups and sponsors. The PyCon Ireland 2026 website is in a [separate repository](https://github.com/PythonIreland/2026.pycon.ie). +This is the Python Ireland (https://python.ie) website, built with Django 6.0 and Wagtail CMS 8.1. It manages content for the Python Ireland community including meetups and sponsors. The PyCon Ireland 2026 website is in a [separate repository](https://github.com/PythonIreland/2026.pycon.ie). ### Python Version @@ -42,7 +42,7 @@ Always specify settings module: `--settings=pythonie.settings.dev` (or `tests`, ### Key Dependencies - Django 6.0 -- Wagtail 7.3 (CMS framework) +- Wagtail 8.1 (CMS framework) - Redis (caching, configured via `REDISCLOUD_URL`) - WhiteNoise (static file serving) - boto3/django-storages (S3 integration) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 7259687..790aa81 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -23,7 +23,7 @@ ### Tech Stack - **Framework**: Django 6.0 -- **CMS**: Wagtail 7.2.1 +- **CMS**: Wagtail 8.1 - **Python**: 3.13.11 (or any Python 3.13.x - required) - **Database**: PostgreSQL 17 (prod and dev via Docker) - **Cache**: Redis 6.2 diff --git a/README.md b/README.md index 8b3ef99..4395885 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Python Ireland Website -This is the Python Ireland (https://python.ie) website, built with Django 6.0 and Wagtail CMS 7.3. It manages content for the Python Ireland community including meetups and sponsors. The PyCon Ireland 2026 website is in a [separate repository](https://github.com/PythonIreland/2026.pycon.ie). +This is the Python Ireland (https://python.ie) website, built with Django 6.0 and Wagtail CMS 8.1. It manages content for the Python Ireland community including meetups and sponsors. The PyCon Ireland 2026 website is in a [separate repository](https://github.com/PythonIreland/2026.pycon.ie). ## Prerequisites diff --git a/pyproject.toml b/pyproject.toml index 8caf225..82834e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ dependencies = [ "pytz>=2026.4", "redis>=8.1.0", "requests>=2.34.2", - "wagtail>=7.3.4,<7.4", + "wagtail>=8.1,<8.2", "whitenoise>=6.12.0", "willow>=1.12.0", ] diff --git a/uv.lock b/uv.lock index d51134f..4a5215d 100644 --- a/uv.lock +++ b/uv.lock @@ -389,6 +389,19 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/cd/57/cdcdea9a56d114e9217d52ce9a8af19ad7fe8a0996faf8480d3f286c02e0/django_modelcluster-6.5-py3-none-any.whl", hash = "sha256:469b380a294027d5211d0e5d5746e0381f445b058d2229977a58fe0f1c58a596", size = 29865, upload-time = "2026-05-01T12:25:31.886Z" }, ] +[[package]] +name = "django-ninja" +version = "1.8.0" +source = { registry = "https://pypi.org/simple" } +dependencies = [ + { name = "django" }, + { name = "pydantic" }, +] +sdist = { url = "https://files.pythonhosted.org/packages/8d/53/3453836e6246b5d4b0e55c36d2dfab4cad6091d08483bdc4505906a1197c/django_ninja-1.8.0.tar.gz", hash = "sha256:0f043a1aebd2c45e2a124a83e5bd0961491b18cdf81ea57c6abd80607b2c6ef8", size = 2347023, upload-time = "2026-11-08T10:52:03.703Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/f1/d5/fbfdae4ab7a81f4980cec09ef17f86d4ac2d96058787bd6282d775be91bc/django_ninja-1.8.0-py3-none-any.whl", hash = "sha256:132f37a36ac5ec9569fdc141da6984c1806bdd08af36f855980fab6cdcb10038", size = 2382930, upload-time = "2026-11-08T10:52:01.541Z" }, +] + [[package]] name = "django-permissionedforms" version = "0.1" @@ -478,11 +491,11 @@ wheels = [ [[package]] name = "draftjs-exporter" -version = "5.2.0" +version = "7.3.1" source = { registry = "https://pypi.org/simple" } -sdist = { url = "https://files.pythonhosted.org/packages/4f/61/8b7fab482ef246f931b57f55f370e68377a53dcf5259f3fcf01e4889d4af/draftjs_exporter-5.2.0.tar.gz", hash = "sha256:4d665f8c75fd173d2c99326405300e8defcf4961b9b2f16ff117486489c6760b", size = 19674, upload-time = "2026-01-02T14:19:38.17Z" } +sdist = { url = "https://files.pythonhosted.org/packages/a5/cd/f6e8e34690eccd80e551b39a64e81ce22a1b82422a4384d346ba8c1d5b45/draftjs_exporter-7.3.1.tar.gz", hash = "sha256:557e2afb861f9447c8d503089ec140e45e1bbfb4acdce745e589291f117dac93", size = 60638, upload-time = "2026-10-20T07:03:58.069Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/53/e1/2f81aa30ba22ceabb6779ed5dbd6b27fbf6f28deabad91140d1a32f3da5b/draftjs_exporter-5.2.0-py3-none-any.whl", hash = "sha256:f5255510a9c1de60807c1ba4be9666fb44ba263841b63329c8ce70d66146764c", size = 26251, upload-time = "2026-01-02T14:19:36.843Z" }, + { url = "https://files.pythonhosted.org/packages/5e/b3/91c4b92c67afbc70856911467ec6d239e5f0fa0f91974b7a415f168f29fb/draftjs_exporter-7.3.1-py3-none-any.whl", hash = "sha256:eddd07ee418c5f85c6a2900887fa1eb50de0c5f6533193497b1fe063803210e9", size = 75306, upload-time = "2026-10-20T07:03:56.69Z" }, ] [[package]] @@ -692,15 +705,15 @@ wheels = [ [[package]] name = "modelsearch" -version = "1.2.2" +version = "1.3.2" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "django" }, { name = "django-tasks" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/a2/7f/f775ea3ea2180a39fda4fb9bcce634478fc844ab0f436b899cc0a6e7a1c6/modelsearch-1.2.2.tar.gz", hash = "sha256:59fc29965d5411d607d0d5f80a65f0f49bec54bd5a425e8e0bfb185f04761e5b", size = 91157, upload-time = "2026-04-27T23:36:56.311Z" } +sdist = { url = "https://files.pythonhosted.org/packages/77/e3/5ce9c70828fe46be161781a04860fe3fe9d54c9b0b09539d9c291d15dbcf/modelsearch-1.3.2.tar.gz", hash = "sha256:52ede0f65e91efdb9d715f603e0bb3db96a95c80eba695abcd4628c03759999e", size = 105253, upload-time = "2026-08-11T14:38:12.199Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/d3/03/24e5c5af6962e85fddebb58ba8448109789f62fee61b8375161284aa8e33/modelsearch-1.2.2-py3-none-any.whl", hash = "sha256:fd18522c1619e00452266513a78284a4e5016871c107036b078a45e42fa871e2", size = 111491, upload-time = "2026-04-27T23:36:54.712Z" }, + { url = "https://files.pythonhosted.org/packages/6a/46/394e799ff69475093f05187929618b13cb230e9e9ce358313a1055724a5d/modelsearch-1.3.2-py3-none-any.whl", hash = "sha256:8738ad7dc6fd2f70f622e717c52fbdcc60285e6b74acc41a7bf3fe911718532b", size = 129677, upload-time = "2026-08-11T14:38:10.768Z" }, ] [[package]] @@ -1209,7 +1222,7 @@ requires-dist = [ { name = "pytz", specifier = ">=2026.4" }, { name = "redis", specifier = ">=8.1.0" }, { name = "requests", specifier = ">=2.34.2" }, - { name = "wagtail", specifier = ">=7.3.4,<7.4" }, + { name = "wagtail", specifier = ">=8.1,<8.2" }, { name = "whitenoise", specifier = ">=6.12.0" }, { name = "willow", specifier = ">=1.12.0" }, ] @@ -1393,6 +1406,15 @@ version = "0.7.0" source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/87/b0/9cf15108b73c4f2ffffe11d237c938f57785f55d3693d822d565432cb680/static3-0.7.0.tar.gz", hash = "sha256:674641c64bc75507af2eb20bef7e7e3593dca993dec6674be108fa15b42f47c8", size = 24607, upload-time = "2016-05-10T11:43:45.17Z" } +[[package]] +name = "swapper" +version = "1.5.0" +source = { registry = "https://pypi.org/simple" } +sdist = { url = "https://files.pythonhosted.org/packages/c2/3e/a28d29aa28570b09257dad52cc5e5ebda9fe8802eeca0d9e254ccf8e5788/swapper-1.5.0.tar.gz", hash = "sha256:405f934265aa0c8d8b8e6b1be584875d1a3b7de6b1cd6f47367a4dbdc028609a", size = 24119, upload-time = "2026-09-01T21:51:07.192Z" } +wheels = [ + { url = "https://files.pythonhosted.org/packages/29/5f/eab0a39f9c16c5d32c00f1f9b7ee9e8823686d1fd40a7fd1f0fc3247a59c/swapper-1.5.0-py2.py3-none-any.whl", hash = "sha256:67ae5a01bc12159dede567b98212a83baa53aa466a8eb5cf44af226b8219d21c", size = 7273, upload-time = "2026-09-01T21:51:05.953Z" }, +] + [[package]] name = "telepath" version = "0.3.1" @@ -1526,7 +1548,7 @@ wheels = [ [[package]] name = "wagtail" -version = "7.3.4" +version = "8.1" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "anyascii" }, @@ -1534,6 +1556,7 @@ dependencies = [ { name = "django" }, { name = "django-filter" }, { name = "django-modelcluster" }, + { name = "django-ninja" }, { name = "django-permissionedforms" }, { name = "django-taggit" }, { name = "django-tasks" }, @@ -1544,13 +1567,15 @@ dependencies = [ { name = "modelsearch" }, { name = "openpyxl" }, { name = "pillow" }, + { name = "pydantic" }, { name = "requests" }, + { name = "swapper" }, { name = "telepath" }, { name = "willow", extra = ["heif"] }, ] -sdist = { url = "https://files.pythonhosted.org/packages/00/3f/5731e6010db528b5e4da201e65f67703c89770e5be6be49b5a1ea4c42876/wagtail-7.3.4.tar.gz", hash = "sha256:30816255dfbb97238050a6687f04b2b4eb88f5201993c48df36d68fab0a70505", size = 6897983, upload-time = "2026-08-20T15:28:10.932Z" } +sdist = { url = "https://files.pythonhosted.org/packages/7f/f4/b610c5f9e26b43fc404045800a2a3d167e2b055e69837f4ebf3331f78c07/wagtail-8.1.tar.gz", hash = "sha256:5c1abb0e11efc31454db0b5312d6786b5d8fdfbef5c815b7d8bacb2ad6bd486c", size = 7073619, upload-time = "2026-11-02T15:58:35.52Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/4e/63/c34864d49075491157c5215a827406b5663d6025710b3eea00b99592f791/wagtail-7.3.4-py3-none-any.whl", hash = "sha256:2eab9f6a872b967a55f2575a38b4f83a3d406a34d5dab456e0a21c91fd57bcca", size = 9492859, upload-time = "2026-08-20T15:28:00.066Z" }, + { url = "https://files.pythonhosted.org/packages/15/9d/76d9a648ae7fe34425b474be23d9e0bef43f2f332d848a0d2e865c042564/wagtail-8.1-py3-none-any.whl", hash = "sha256:dd7c988377ec6b8fcbd9ea8b5e36d34d800706bb70f927711ff4575619752d42", size = 9756355, upload-time = "2026-11-02T15:57:51.495Z" }, ] [[package]]