Skip to content

Commit 1effcd9

Browse files
committed
Add support for Wagtail 7
1 parent 30f3684 commit 1effcd9

4 files changed

Lines changed: 35 additions & 11 deletions

File tree

.github/workflows/test.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ on:
99
# Current configuration:
1010
# - django 4.2, python 3.8, wagtail 5.2, sqlite
1111
# - django 5.0, python 3.10, wagtail 6.0, postgres
12-
# - django 5.0, python 3.12, wagtail main, sqlite (allow failures)
12+
# - django 5.2, python 3.12, wagtail 7.2, sqlite
13+
# - django 5.2, python 3.12, wagtail main, sqlite (allow failures)
1314
jobs:
1415
test:
1516
runs-on: ubuntu-latest
@@ -29,9 +30,14 @@ jobs:
2930
database: "postgresql"
3031
modeladmin: true
3132
experimental: false
32-
3333
- python: "3.12"
34-
django: "Django>=5.0,<5.1"
34+
django: "Django>=5.2,<5.3"
35+
wagtail: "wagtail>=7.2,<8.0"
36+
database: "sqlite3"
37+
modeladmin: true
38+
experimental: false
39+
- python: "3.12"
40+
django: "Django>=5.2,<6.0"
3541
wagtail: "git+https://github.com/wagtail/wagtail.git@main#egg=wagtail"
3642
database: "sqlite3"
3743
modeladmin: true

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This module supports the creation of A/B testing experiments within a Wagtail si
1111
Installation
1212
------------
1313

14-
wagtail-experiments is compatible with Wagtail 5.2 to 6.0, and Django 4.2 to 5.0. It depends on the Wagtail ModelAdmin module, which is available as an external package as of Wagtail 5.0; we recommend using this rather than the bundled `wagtail.contrib.modeladmin` module to avoid deprecation warnings. The external package is required as of Wagtail 6.0.
14+
wagtail-experiments is compatible with Wagtail 5.2 to 7.2, and Django 4.2 to 5.2. It depends on the Wagtail ModelAdmin module, which is available as an external package as of Wagtail 5.0; we recommend using this rather than the bundled `wagtail.contrib.modeladmin` module to avoid deprecation warnings. The external package is required as of Wagtail 6.0.
1515

1616
To install::
1717

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name='wagtail-experiments',
7-
version='0.4',
7+
version='0.5',
88
description="A/B testing for Wagtail",
99
author='Matthew Westcott',
1010
author_email='matthew.westcott@torchbox.com',
@@ -26,12 +26,16 @@
2626
'Programming Language :: Python :: 3.10',
2727
'Programming Language :: Python :: 3.11',
2828
'Programming Language :: Python :: 3.12',
29+
'Programming Language :: Python :: 3.13',
2930
'Framework :: Django',
3031
'Framework :: Django :: 4.2',
3132
'Framework :: Django :: 5.0',
33+
'Framework :: Django :: 5.1',
34+
'Framework :: Django :: 5.2',
3235
'Framework :: Wagtail',
3336
'Framework :: Wagtail :: 5',
3437
'Framework :: Wagtail :: 6',
38+
'Framework :: Wagtail :: 7',
3539
],
3640
)
3741

tests/fixtures/test.json

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
[
2+
{
3+
"pk": 1,
4+
"model": "wagtailcore.locale",
5+
"fields": {
6+
"language_code": "en",
7+
"locale_name": "English"
8+
}
9+
},
210
{
311
"pk": 1,
412
"model": "wagtailcore.page",
@@ -14,7 +22,8 @@
1422
],
1523
"path": "0001",
1624
"url_path": "/",
17-
"slug": "root"
25+
"slug": "root",
26+
"locale_id": 1
1827
}
1928
},
2029

@@ -30,7 +39,8 @@
3039
"content_type": ["tests", "simplepage"],
3140
"path": "00010001",
3241
"url_path": "/home/",
33-
"slug": "home"
42+
"slug": "home",
43+
"locale_id": 1
3444
}
3545
},
3646
{
@@ -62,7 +72,8 @@
6272
"content_type": ["tests", "simplepage"],
6373
"path": "000100010001",
6474
"url_path": "/home/home-alternative-1/",
65-
"slug": "home-alternative-1"
75+
"slug": "home-alternative-1",
76+
"locale_id": 1
6677
}
6778
},
6879
{
@@ -94,7 +105,8 @@
94105
"content_type": ["tests", "simplepage"],
95106
"path": "000100010002",
96107
"url_path": "/home/home-alternative-2/",
97-
"slug": "home-alternative-2"
108+
"slug": "home-alternative-2",
109+
"locale_id": 1
98110
}
99111
},
100112
{
@@ -126,7 +138,8 @@
126138
"content_type": ["tests", "simplepage"],
127139
"path": "000100010003",
128140
"url_path": "/home/signup-complete/",
129-
"slug": "signup-complete"
141+
"slug": "signup-complete",
142+
"locale_id": 1
130143
}
131144
},
132145
{
@@ -144,7 +157,8 @@
144157
"root_page": 2,
145158
"hostname": "localhost",
146159
"port": 80,
147-
"is_default_site": true
160+
"is_default_site": true,
161+
"default_locale_id": 1
148162
}
149163
},
150164

0 commit comments

Comments
 (0)