diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-03-26 15:26:20 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2025-06-13 18:08:06 +0200 |
commit | 510b9de8fc74807723d73985a84d494218886db9 (patch) | |
tree | eec22d9e2b42814270c3fd022774386492960d43 /ishtar_common/widgets.py | |
parent | f83a1ca1190d2357f668ea182c7b20181fe117e7 (diff) | |
download | Ishtar-510b9de8fc74807723d73985a84d494218886db9.tar.bz2 Ishtar-510b9de8fc74807723d73985a84d494218886db9.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.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ishtar_common/widgets.py b/ishtar_common/widgets.py index a7a59d818..b96baee01 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 @@ -796,7 +796,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: @@ -998,7 +998,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: @@ -1124,7 +1124,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: |