From 94fa56af549c8de0b35e32dfcca276897f86ff2a Mon Sep 17 00:00:00 2001 From: Andy Chosak Date: Mon, 14 Aug 2023 15:44:12 -0400 Subject: [PATCH] Fix classname deprecation warning in Wagtail 4.2 Wagtail 4.2 deprecates use of the `class_name` attribute in the icon tag. This commit replaces it with `classname` instead. See: https://docs.wagtail.org/en/stable/releases/4.2.html#adoption-of-classname-convention-for-some-template-tags-includes --- .../templates/wagtailflags/includes/flag_breadcrumbs.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wagtailflags/templates/wagtailflags/includes/flag_breadcrumbs.html b/wagtailflags/templates/wagtailflags/includes/flag_breadcrumbs.html index 5d6fd74..7e1446d 100644 --- a/wagtailflags/templates/wagtailflags/includes/flag_breadcrumbs.html +++ b/wagtailflags/templates/wagtailflags/includes/flag_breadcrumbs.html @@ -17,7 +17,7 @@ aria-label="{% trans 'Toggle breadcrumbs' %}" aria-expanded="false" > - {% icon name="breadcrumb-expand" class_name="w-w-4 w-h-4" %} + {% icon name="breadcrumb-expand" classname="w-w-4 w-h-4" %}
@@ -28,7 +28,7 @@ {% trans 'Flags' %} - {% icon name="arrow-right" class_name=icon_classes %} + {% icon name="arrow-right" classname=icon_classes %} {% if flag %}