summaryrefslogtreecommitdiff
path: root/ishtar_common/widgets.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-03-26 15:26:20 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-10-24 18:32:21 +0200
commitb98b3004bb1a47674c9595a5d674dc4ba83344c8 (patch)
tree8c382fb22ff3a8ddbf94dd69ad1a3a81f96cba7a /ishtar_common/widgets.py
parent3b8d21e5bbee1ba59152ba6abc6ab73432fe611f (diff)
downloadIshtar-b98b3004bb1a47674c9595a5d674dc4ba83344c8.tar.bz2
Ishtar-b98b3004bb1a47674c9595a5d674dc4ba83344c8.zip
♻️ django 3.2 deprecation: force_text -> force_str - templates: remove ifequal ; PIL: Image.ANTIALIAS -> Image.Resampling.LANCZOS
Diffstat (limited to 'ishtar_common/widgets.py')
-rw-r--r--ishtar_common/widgets.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/ishtar_common/widgets.py b/ishtar_common/widgets.py
index 1c0b23c13..54c832d38 100644
--- a/ishtar_common/widgets.py
+++ b/ishtar_common/widgets.py
@@ -33,7 +33,7 @@ from django.forms.widgets import (
from django.template import loader
from django.template.defaultfilters import slugify
from django.urls import reverse, NoReverseMatch
-from django.utils.encoding import smart_text
+from django.utils.encoding import smart_str
from django.utils.functional import lazy
from django.utils.html import escape
from django.utils.safestring import mark_safe
@@ -806,7 +806,7 @@ class JQueryAutoComplete(forms.TextInput):
hiddens = []
selects = []
if type(value) not in (list, tuple):
- values = str(escape(smart_text(value)))
+ values = str(escape(smart_str(value)))
values = values.replace("[", "").replace("]", "")
values = values.split(",")
else:
@@ -1008,7 +1008,7 @@ class JQueryTown(forms.TextInput):
hiddens = []
selects = []
if type(value) not in (list, tuple):
- values = str(escape(smart_text(value)))
+ values = str(escape(smart_str(value)))
values = values.replace("[", "").replace("]", "")
values = values.split(",")
else:
@@ -1134,7 +1134,7 @@ class JQueryPersonOrganization(forms.TextInput):
hiddens = []
selects = []
if type(value) not in (list, tuple):
- values = str(escape(smart_text(value)))
+ values = str(escape(smart_str(value)))
values = values.replace("[", "").replace("]", "")
values = values.split(",")
else: