Skip to content

Commit 89e05ea

Browse files
committed
Use mark_safe instead of format_html with no args
This addresses a deprecation in Django 6.0.
1 parent fe25c45 commit 89e05ea

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

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

8+
## [0.13.2] - 2026-02-19
9+
10+
- Compatibility fix for Django 6.0
11+
812
## [0.13.1] - 2025-12-10
913

1014
- Maintenance update for Wagtail 7.0, 7.1 & 7.2 compatibility

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ classifiers = [
3232
"Framework :: Django :: 4.2",
3333
"Framework :: Django :: 5.1",
3434
"Framework :: Django :: 5.2",
35+
"Framework :: Django :: 6.0",
3536
"Framework :: Wagtail",
3637
"Framework :: Wagtail :: 6",
3738
"Framework :: Wagtail :: 7",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
__version__ = "0.13.1"
1+
__version__ = "0.13.2"
22

33
WAGTAIL_CONTENT_IMPORT_REQUEST_TIMEOUT = 25

src/wagtail_content_import/pickers/google/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import json
22

33
from django.template.loader import render_to_string
4-
from django.utils.html import format_html
54
from django.utils.safestring import mark_safe
65

76
from ...parsers import get_google_parser
@@ -49,10 +48,10 @@ class Media:
4948
css = {}
5049
js = [
5150
"wagtail_content_import/google_picker.js",
52-
format_html(
51+
mark_safe(
5352
'<script async defer src="https://apis.google.com/js/api.js" onload="window.googlepicker_api_loaded = true;"></script>'
5453
),
55-
format_html(
54+
mark_safe(
5655
'<script async defer src="https://accounts.google.com/gsi/client" onload="window.googlepicker_client_loaded = true;"></script>'
5756
),
5857
]

0 commit comments

Comments
 (0)