From 900d6964c08962ede810887fc9ff6bff2d9b7b8e Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sat, 10 Feb 2024 13:42:55 +0100 Subject: 🐛 relation graphs - fix '\n' string (refs #5500) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ishtar_common/templatetags/ishtar_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ishtar_common') diff --git a/ishtar_common/templatetags/ishtar_helpers.py b/ishtar_common/templatetags/ishtar_helpers.py index 28c70de0f..f94339fc5 100644 --- a/ishtar_common/templatetags/ishtar_helpers.py +++ b/ishtar_common/templatetags/ishtar_helpers.py @@ -79,7 +79,7 @@ def safe_or(item, args): def file_content(value): if value: try: - return mark_safe(value.read()) + return mark_safe(value.read().decode("utf-8")) except FileNotFoundError: pass return "" -- cgit v1.2.3