Skip to content

Commit e02fd88

Browse files
committed
deps: Update to Wagtail 7.4 + Changelog
1 parent c3b20d8 commit e02fd88

5 files changed

Lines changed: 12 additions & 3 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ coverage.xml
2323
*.pot
2424

2525
# Environments
26+
.venv/
2627
venv/
2728
/pyvenv.cfg
2829
/pip-selfcheck.json

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
Since version v2306.1 the format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
This project (not yet) adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## v2605.1
9+
10+
### Changed
11+
12+
- update dependency wagtail to v7.4
13+
- search backend: use `INDEX_PREFIX` instead of deprecated `INDEX`; tolerate `_django_content_type` in Elasticsearch highlights (Wagtail 7.2+ index format)
14+
815
## v2604.1
916

1017
### Changed

apps/contrib/elasticsearch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ def _get_results_from_hits(self, hits):
3838

3939
for hit in hits:
4040
hs = hit['highlight']
41-
hs.pop('content_type')
41+
hs.pop('content_type', None)
42+
hs.pop('_django_content_type', None)
4243
if '_all_text_boost_2_0' in hs:
4344
# ignore hits from the _all_text field as it doesn't work with
4445
# our translations

digitalstrategie/settings/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
'default': {
204204
'BACKEND': 'apps.contrib.elasticsearch',
205205
'URLS': ['http://localhost:9200'],
206-
'INDEX': 'wagtail',
206+
'INDEX_PREFIX': 'wagtail_',
207207
'TIMEOUT': 5,
208208
'OPTIONS': {},
209209
'INDEX_SETTINGS': {}

requirements/base.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ django-csp==3.8
55
django-multiselectfield==0.1.13
66
django-widget-tweaks==1.5.1
77
sentry-sdk==2.58.0
8-
wagtail==6.3.5
8+
wagtail==7.4
99
whitenoise==6.8.2
1010
elasticsearch==8.19.3
1111
wagtail-metadata==5.0.0

0 commit comments

Comments
 (0)