Skip to content

Commit

Permalink
Fix broken import against main
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolab committed Mar 28, 2022
1 parent d7a5aa1 commit 8278ab9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wagtail_localize/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@

if WAGTAIL_VERSION >= (2, 16):
# Only use in a 2.16+ context
from wagtail.core.blocks.list_block import ListValue
try:
from wagtail.blocks.list_block import ListValue
except ImportError:
from wagtail.core.blocks.list_block import ListValue


def pk(obj):
Expand Down

0 comments on commit 8278ab9

Please sign in to comment.