Can you update the line from models.py:
from wagtail.utils import camelcase_to_underscore to wagtail.coreutils import camelcase_to_underscore
also in views/unsubscribe.py
You can add the wagtail version logic ... i.e. for version 5, change line from wagtail.core.models import Site to from wagtail.models import Site
Can you update the line from
models.py
: fromwagtail.utils import camelcase_to_underscore
towagtail.coreutils import camelcase_to_underscore
also in
views/unsubscribe.py
You can add the wagtail version logic ... i.e. for version 5, change linefrom wagtail.core.models import Site
tofrom wagtail.models import Site