cfpb / consumerfinance.gov

Django project protecting American consumers
https://www.consumerfinance.gov/
Creative Commons Zero v1.0 Universal
276 stars 112 forks source link

Update wagtail-footnotes, remove local footnote custom rendering #8532

Closed willbarton closed 2 months ago

willbarton commented 2 months ago

This updates wagtail-footnotes to 0.12 and removes our custom RichTextBlockWithFootnotes subclass of wagtail-footnotes own RichTextBlockWithFootnotes and tests, and switches to using the upstream RichTextBlockWithFootnotes. 0.12 includes our changes in https://github.com/torchbox/wagtail-footnotes/pull/70, which were based on this code being removed.

This change updates RichTextBlockWithFootnotes in-place in old migrations. Removing v1.blocks.RichTextBlockWithFootnotes requires these migrations to be updated, and because there are no schema changes, new migrations are not required.

This will also unblock our Wagtail 6.2 upgrade in #8522. There should be no change to the admin experience or frontend rendering.

Checklist