Skip to content

Wagtail 7.3 upgrade#269

Open
nickmoreton wants to merge 17 commits into
labd:masterfrom
torchbox-forks:stable/1.8.2
Open

Wagtail 7.3 upgrade#269
nickmoreton wants to merge 17 commits into
labd:masterfrom
torchbox-forks:stable/1.8.2

Conversation

@nickmoreton
Copy link
Copy Markdown
Contributor

@nickmoreton nickmoreton commented Apr 16, 2026

This PR replaces #257

This pull request updates the project for compatibility with the latest versions of Python, Django, and Wagtail

Framework and Dependency Updates:

  • Updated minimum requirements to Django>=5.2 and Wagtail>=7.0

Testing and Compatibility:

  • Added testing for Python 3.14, Wagtail 7.2, and 7.3 in tox.ini
  • Added new test environments for Wagtail 7.1–7.3.

Codebase Modernization and Cleanup:

  • Removed legacy template files and logic for Wagtail <6.0
  • Updated URL patterns in wagtail_hooks.py and sandbox/urls.py to use path() instead of re_path(), and switched to Django 2.0+ path converters.
  • Updated admin button handling for user listing to support Wagtail 7.1+ and removed legacy code.

Middleware and Configuration Improvements:

  • Middleware now supports extending allowed URL names for 2FA bypass via a WAGTAIL_2FA_ALLOWED_URL_NAMES setting.

UI and Template Enhancements:

  • Improved device list template button to use consistent Wagtail icon markup.
  • Updated authentication form to use formattedfield for better compatibility with modern Wagtail, and improved the sign-out button to use a POST request.

Other minor cleanups include removing the deprecated USE_L10N setting and updating imports for clarity and future compatibility.

@nickmoreton nickmoreton changed the title Stable/1.8.2 Wagtail 7.3 upgrade Apr 16, 2026
@nickmoreton
Copy link
Copy Markdown
Contributor Author

The changes here have been combined into #280

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants