dinoperovic / django-salesman

Headless e-commerce framework for Django and Wagtail.
https://django-salesman.rtfd.io
BSD 3-Clause "New" or "Revised" License
384 stars 46 forks source link

Add the new deprecated wagtail module routes #28

Closed josueisaihs closed 1 year ago

josueisaihs commented 1 year ago

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:

Thank you for contributing to Salesman, before you continue make sure that:

dinoperovic commented 1 year ago

Hi @josueisaihs, thanks for the PR. Could you make sure the linting passes?

You can run: poetry run pre-commit run --all-files to check.

dinoperovic commented 1 year ago

Doplicate of #33