Wagtail 4.0 has deprecated wagtail.contrib.settings.models.BaseSetting in favour of wagtail.contrib.settings.models.BaseSiteSetting. This PR introduces into wagtail-schema.org a conditional import to maintain compatibility from Wagtail 2 into Wagtail 4.
Tested with local tests (runtests.py) and in one of my Wagtail projects with both Wagtail 3.x, Wagtail 4.0 and Wagtail 4.0.2.
It would be good to get this PR merged in readiness for the release of Wagtail 4.1 LTS in November 2022.
Fixes #13
Wagtail 4.0 has deprecated
wagtail.contrib.settings.models.BaseSetting
in favour ofwagtail.contrib.settings.models.BaseSiteSetting
. This PR introduces into wagtail-schema.org a conditional import to maintain compatibility from Wagtail 2 into Wagtail 4.Tested with local tests (
runtests.py
) and in one of my Wagtail projects with both Wagtail 3.x, Wagtail 4.0 and Wagtail 4.0.2.It would be good to get this PR merged in readiness for the release of Wagtail 4.1 LTS in November 2022.