From fdea77fd9347638409ac56948c87e7f61af8847c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 4 Feb 2021 18:54:48 +0100 Subject: Typo fix --- ishtar_common/utils_migrations.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ishtar_common/utils_migrations.py') diff --git a/ishtar_common/utils_migrations.py b/ishtar_common/utils_migrations.py index bbe308f4e..57d75077e 100644 --- a/ishtar_common/utils_migrations.py +++ b/ishtar_common/utils_migrations.py @@ -151,9 +151,9 @@ def m2m_historization_init(obj): # not clean... but json fields seems to be not well managed by # cursor.execute cursor.execute( - u"UPDATE \"" + obj.__class__._meta.db_table + u"\" SET " - u"history_m2m = '" + json.dumps(hist_values).replace(u"'", u"''") + - u"'::json WHERE id = %s", [obj.pk] + "UPDATE \"" + obj.__class__._meta.db_table + "\" SET " + "history_m2m = '" + json.dumps(hist_values).replace("'", "''") + + "'::json WHERE id = %s", [obj.pk] ) -- cgit v1.2.3