Skip to content

Commit

Permalink
Roll back Wagtail 3 support for now
Browse files Browse the repository at this point in the history
  • Loading branch information
chosak committed May 13, 2022
1 parent 2184f66 commit c566eae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

install_requires = [
"tqdm>=4.15.0,<5",
"wagtail>=2.15,<4",
"wagtail>=2.15,<3",
]


Expand Down
6 changes: 1 addition & 5 deletions wagtailinventory/tests/test_helpers.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
from django.test import TestCase

import wagtail
from wagtail.core.models import Page

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):
Expand Down

0 comments on commit c566eae

Please sign in to comment.