Convert flexible field values to SQL before storing them

This is required to support multivalued fields as flexible fields.
This commit is contained in:
Maxr1998 2025-03-29 13:07:41 +01:00
parent bde5de42b3
commit 1c64b8be32
No known key found for this signature in database
GPG key ID: ECECF0D4F4816C81

View file

@ -607,6 +607,7 @@ class Model(ABC, Generic[D]):
for key, value in self._values_flex.items():
if key in self._dirty:
self._dirty.remove(key)
value = self._type(key).to_sql(value)
tx.mutate(
"INSERT INTO {} "
"(entity_id, key, value) "