From 0435bd0e5aa7f3f3fe4568bd35e26bf9a3461d45 Mon Sep 17 00:00:00 2001 From: RhodeCode Admin Date: Tue, 5 Dec 2023 10:00:37 +0100 Subject: [PATCH] fix(deprecations): fixed sqlalchemy warning about non-cachable JsonObject --- rhodecode/lib/jsonalchemy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rhodecode/lib/jsonalchemy.py b/rhodecode/lib/jsonalchemy.py index f1785720..d992e7a2 100644 --- a/rhodecode/lib/jsonalchemy.py +++ b/rhodecode/lib/jsonalchemy.py @@ -50,6 +50,7 @@ class JSONEncodedObj(sqlalchemy.types.TypeDecorator): impl = UnicodeText safe = True enforce_str = True + cache_ok = True def __init__(self, *args, **kwargs): self.default = kwargs.pop('default', None)