wagtail-nest / wagtail-bakery

A set of helpers for baking your Django Wagtail site out as flat files.
MIT License
182 stars 40 forks source link

Fix Wagtail 2.8 Deprecation Warnings #54

Closed loicteixeira closed 4 years ago

loicteixeira commented 4 years ago

Ref #53

loicteixeira commented 4 years ago

The deprecation warning from Wagtail 2.8 was an easy fix.

The one from Wagtail 2.9 might be a bit trickier as request.site is not only used in a template (easy-ish fix) but is also manually hydrated in the API views. I'll need to dig a bit deeper in how the new site/request thing works in order for everything to work the in the new way.

If I can't get to the bottom of it before the start of August, we can still merge this PR so the first deprecation warning (which by Wagtail 2.10 will be breaking) can be addressed.

loicteixeira commented 4 years ago

Merging this first fix which should bring compatibility with Wagtail 2.10.