Atualiza wagtail para versão 7#106
Hidden character warning
Conversation
There was a problem hiding this comment.
Pull request overview
This PR upgrades the project from Wagtail 6.3.2 to Wagtail 7.3.1 and Django 5.0.7 to Django 5.2.12 (LTS), along with updating several related dependencies for compatibility. It also migrates the recaptcha integration from the old captcha app label to django_recaptcha, reflecting the breaking change in django-recaptcha 4.x.
Changes:
- Upgraded Django from 5.0.7 to 5.2.12 and Wagtail from 6.3.2 to 7.3.1, along with their ecosystem packages (
django-compressor,django-celery-beat,django_celery_results,wagtailmenus,wagtail-localize,wagtail-modeladmin,wagtail-autocomplete,django-stubs). - Replaced the
captchaapp label withdjango_recaptchainINSTALLED_APPSto match the renamed app indjango-recaptcha4.1.0, and updatedwagtail-django-recaptchato 2.1.1. - Bumped project version from 1.13.1 to 1.14.0.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
requirements/base.txt |
Upgraded Django, Wagtail, and related package versions |
requirements/local.txt |
Upgraded django-stubs to 5.2.9 for Django 5.2 compatibility |
config/settings/base.py |
Changed captcha to django_recaptcha in INSTALLED_APPS |
VERSION |
Bumped project version from 1.13.1 to 1.14.0 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| # ------------------------------------------------------------------------------ | ||
| mypy==1.6.1 # https://github.com/python/mypy | ||
| django-stubs==4.2.6 # https://github.com/typeddjango/django-stubs | ||
| django-stubs==5.2.9 # https://github.com/typeddjango/django-stubs |
There was a problem hiding this comment.
Upgrading django-stubs from 4.2.6 to 5.2.9 likely requires a corresponding upgrade of mypy (line 10). The django-stubs 5.x series typically requires mypy >= 1.10.0, but mypy is still pinned at 1.6.1 on the line above. This version mismatch will likely cause installation or runtime errors when running type checks. Please also update mypy to a compatible version (e.g., mypy>=1.10.0).
This pull request updates several dependencies to newer versions and replaces the
captchapackage withdjango_recaptchain the base settings. These changes will improve compatibility, security, and maintainability across the project.Dependency upgrades:
django==5.0.7todjango==5.2.12, and updated related packages includingdjango-compressor,django-celery-beat,django_celery_results, anddjango-stubsfor improved security and compatibility. [1] [2] [3]wagtail,wagtailmenus,wagtail-localize,wagtail-modeladmin,wagtail-autocomplete) to their latest versions, ensuring continued support and access to new features.Recaptcha integration changes:
captchapackage withdjango_recaptchainconfig/settings/base.pyfor improved Recaptcha support.django-recaptchaandwagtail-django-recaptchato newer versions for better compatibility and functionality.Other dependency updates:
rcssminfrom1.1.1to1.2.2for improved CSS minification.Version bump:
1.13.1to1.14.0in theVERSIONfile to reflect these changes.