Skip to content

Incompatibility with Wagtail 2.11.x (definitely 2.11.3) #214

Open
@stevejalim

Description

@stevejalim

Am just moving a Wagtail project to 2.11.x from 2.10.x and hit this after upgrading:

File "/REDACTED/lib/python3.6/site-packages/wagtail_personalisation/wagtail_hooks.py", line 14, in <module>
    from wagtail.admin.views.pages import get_valid_next_url_from_request
ImportError: cannot import name 'get_valid_next_url_from_request'

It looks like that helper function has moved and wagtail-personalisation hasn't caught up yet (am on 0.14.0)

See wagtail/wagtail@aa9c9d9#diff-08f48b8cf5b22209da61adb3fec00945b9849da17b25c1f78ad92c2c25165513 where get_valid_next_url_from_request was moved from the module/__init__ level to a .utils module

Also see wagtail/wagtail-localize@a1b8454 as an example of where a similar import issue was fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions