Updating the imports of wagtail modules that became obsolete, adding a condition that if the wagtail version is 3.0 the new import route is executed, otherwise the current one is maintained. This maintains compatibility with previous versions of wagtail.
Change wagtail.admin.edit_handlers to wagtail.admin.panels
Change wagtail.core.urls to wagtail.urls
Thank you for contributing to Salesman, before you continue make sure that:
Tests still pass: poetry run pytest
There are no lint errors: poetry run pre-commit run --all-files
Thank you for contributing to Salesman, before you continue make sure that:
Tests still pass: poetry run pytest
There are no lint errors: poetry run pre-commit run --all-files
Updating the imports of wagtail modules that became obsolete, adding a condition that if the wagtail version is 3.0 the new import route is executed, otherwise the current one is maintained. This maintains compatibility with previous versions of wagtail.
Change wagtail.admin.edit_handlers to wagtail.admin.panels
Change wagtail.core.urls to wagtail.urls
Thank you for contributing to Salesman, before you continue make sure that:
poetry run pytest
poetry run pre-commit run --all-files
Thank you for contributing to Salesman, before you continue make sure that:
poetry run pytest
poetry run pre-commit run --all-files