add 'cache_ok = True' to PayloadJSONBType type decorator

This commit is contained in:
Andreas Köpf
2023-01-16 08:37:24 +01:00
parent 43a5b19715
commit 72a58ca2d3
@@ -48,6 +48,8 @@ def payload_column_type(pydantic_type):
class PayloadJSONBType(TypeDecorator, Generic[T]):
impl = pg.JSONB()
cache_ok = True
def __init__(
self,
json_encoder=json,