Skip to content

Revert django-csp to v3.8 #399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/upgrading.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,14 @@ As much as possible, we want to use the official releases available on PyPI for
- wagtailmedia
- wagtail-purge

## django-csp

**Last tested for wagtail 7.0.1 upgrade** The current version of django-csp is ~3.8

v4.0 has breaking changes, so we are using the latest version of v3.x.

See the django-csp upgrade notes <https://github.com/mozilla/django-csp/blob/main/CHANGES.md#40>

## Custom wagtail admin templates

**Last checked** Wagtail 7.0 upgrade
Expand Down
13 changes: 5 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Wand = "^0.6.10"
# Django packages
django-basic-auth-ip-whitelist = "^0.8"
django-birdbath = "^2.0.0"
django-csp = "^4.0"
django-csp = "~3.8" # v4.0 has breaking changes see upgrading notes
django-pattern-library = "^1.3.0"
django-permissions-policy = "^4.26.0"
django-phonenumber-field = "^8.1.0"
Expand Down