From 3f2cf8c0a58f99fa2fe76ac780b5b1af28385488 Mon Sep 17 00:00:00 2001 From: Andy Chosak Date: Fri, 13 May 2022 10:27:53 -0400 Subject: [PATCH] Roll back Wagtail 3 support for now --- setup.py | 2 +- wagtailinventory/tests/test_helpers.py | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py index 67b144f..6e786f8 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ install_requires = [ "tqdm>=4.15.0,<5", - "wagtail>=2.15,<4", + "wagtail>=2.15,<3", ] diff --git a/wagtailinventory/tests/test_helpers.py b/wagtailinventory/tests/test_helpers.py index e83ded1..d1404d9 100644 --- a/wagtailinventory/tests/test_helpers.py +++ b/wagtailinventory/tests/test_helpers.py @@ -6,10 +6,8 @@ from wagtailinventory.helpers import get_page_blocks -if wagtail.VERSION < (3,): - CORE_BLOCKS = "wagtail.core.blocks" -else: - CORE_BLOCKS = "wagtail.blocks" +CORE_BLOCKS = "wagtail.core.blocks" + class TestGetPageBlocks(TestCase):