fix(deprecations): fixed sqlalchemy warning about non-cachable JsonObject

This commit is contained in:
RhodeCode Admin 2023-12-05 10:00:37 +01:00
parent 5ff53d7f74
commit 0435bd0e5a

View file

@ -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)