Skip to content

Commit a7971ec

Browse files
committed
Add support for Wagtail 7.1
1 parent ec32777 commit a7971ec

3 files changed

Lines changed: 9 additions & 3 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
matrix:
1010
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
11-
wagtail-version: ["5.2", "6.3", "6.4", "7.0"]
11+
wagtail-version: ["5.2", "6.3", "6.4", "7.0", "7.1"]
1212
django-version: ["4.2", "5.1", "5.2"]
1313
exclude:
1414
# Don't test django with incompatible python versions

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88
### Added
9+
- Add support for Wagtail 7.1 (@nickmoreton, @tombreit)
910
- Add support for Wagtail 7.0 (@nickmoreton)
1011

1112
### Changed

wagtail_color_panel/widgets.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,13 @@
33
from django.forms import widgets
44
from django.utils.safestring import mark_safe
55
from wagtail import VERSION as WAGTAIL_VERSION
6-
from wagtail.telepath import register
7-
from wagtail.widget_adapters import WidgetAdapter
6+
7+
if WAGTAIL_VERSION >= (7, 1):
8+
from wagtail.admin.telepath import register
9+
from wagtail.admin.telepath.widgets import WidgetAdapter
10+
else:
11+
from wagtail.telepath import register
12+
from wagtail.widget_adapters import WidgetAdapter
813

914

1015
class PolyfillColorInputWidget(widgets.TextInput):

0 commit comments

Comments
 (0)