Skip to content
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

Add backwards-compatible locale verbose_name migration #72

Merged
merged 2 commits into from
Aug 13, 2024

Conversation

willbarton
Copy link
Contributor

Wagtail 6.2 alters the Locale model on TranslatableMixin, adding a verbose_name. Because Footnote inherits from TranslatableMixin, it needs a new migration generated for Wagtail 6.2.

To maintain compatibility with Wagtail <= 6.1, this change makes the migration a noop for those versions. See #71 for context.

This PR also adds Wagtail 6.2 to the tox environments.

Closes #71

Wagtail 6.2 alters the Locale model on TranslatableMixin, adding a verbose_name. Because Footnote inherits from TranslatableMixin, it needs a new migration generated for Wagtail 6.2.

To maintain compatibility with Wagtail <= 6.1, this change makes the migration a noop. See torchbox#71 for context.

Closes torchbox#71
Copy link
Member

@zerolab zerolab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @willbarton (and @gasman for the excellent suggestion).

I am being cheeky and want to sneak in the removal of Wagtail 6.0 from the matrix.

LGTM otherwise

tox.ini Outdated Show resolved Hide resolved
tox.ini Outdated Show resolved Hide resolved
@zerolab zerolab merged commit eb0795c into torchbox:main Aug 13, 2024
8 checks passed
@zerolab
Copy link
Member

zerolab commented Aug 13, 2024

https://github.com/torchbox/wagtail-footnotes/releases/tag/0.12.0 now out

@willbarton
Copy link
Contributor Author

Thank you so much, @zerolab!

@willbarton willbarton deleted the wagtail62-compat branch August 13, 2024 19:31
nickmoreton pushed a commit to torchbox-forks/wagtail-footnotes that referenced this pull request Aug 20, 2024
* Add backwards-compatible locale verbose_name migration

Wagtail 6.2 alters the Locale model on TranslatableMixin, adding a verbose_name. Because Footnote inherits from TranslatableMixin, it needs a new migration generated for Wagtail 6.2.

To maintain compatibility with Wagtail <= 6.1, this change makes the migration a noop. See torchbox#71 for context.

* Remove Wagtail 6.0 from test matrix

Co-authored-by: Dan Braghiș <[email protected]>
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.

New migration needed for Wagtail 6.2
2 participants