Fixed init method of legacy BaseSetting class

The "return" statement was only a minor improvement, the breaking code was the passed "self" argument.

- fixes #8996
- fixes #9006
pull/9011/head
Stefan Hammer 2022-08-16 12:09:10 +02:00 zatwierdzone przez LB (Ben Johnston)
rodzic b4bc681865
commit 3bf4a0693c
3 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -166,6 +166,7 @@ Changelog
* Fix: Ensure that `BaseSiteSetting` / `BaseGenericSetting` objects can be pickled (Andy Babic) * Fix: Ensure that `BaseSiteSetting` / `BaseGenericSetting` objects can be pickled (Andy Babic)
* Fix: Ensure `DocumentChooserBlock` can be deconstructed for migrations (Matt Westcott) * Fix: Ensure `DocumentChooserBlock` can be deconstructed for migrations (Matt Westcott)
* Fix: Resolve frontent console error and unintented console logging issues (Matt Wescott, Paarth Agarwal) * Fix: Resolve frontent console error and unintented console logging issues (Matt Wescott, Paarth Agarwal)
* Fix: Resolve issue with sites that have not yet migrated away from `BaseSetting` when upgrading to Wagtail 4.0 (Stefan Hammer)
3.0.1 (16.06.2022) 3.0.1 (16.06.2022)

Wyświetl plik

@ -223,6 +223,7 @@ The bulk of these enhancements have been from Paarth Agarwal, who has been doing
* Ensure that `BaseSiteSetting` / `BaseGenericSetting` objects can be pickled (Andy Babic) * Ensure that `BaseSiteSetting` / `BaseGenericSetting` objects can be pickled (Andy Babic)
* Ensure `DocumentChooserBlock` can be deconstructed for migrations (Matt Westcott) * Ensure `DocumentChooserBlock` can be deconstructed for migrations (Matt Westcott)
* Resolve frontent console error and unintented console logging issues (Matt Wescott, Paarth Agarwal) * Resolve frontent console error and unintented console logging issues (Matt Wescott, Paarth Agarwal)
* Resolve issue with sites that have not yet migrated away from `BaseSetting` when upgrading to Wagtail 4.0 (Stefan Hammer)
## Upgrade considerations ## Upgrade considerations

Wyświetl plik

@ -217,4 +217,4 @@ class BaseSetting(BaseSiteSetting):
category=RemovedInWagtail50Warning, category=RemovedInWagtail50Warning,
stacklevel=2, stacklevel=2,
) )
return super().__init__(self, *args, **kwargs) super().__init__(*args, **kwargs)