diff --git a/sandbox/grist/objtypes.py b/sandbox/grist/objtypes.py index af55c398..aed859ac 100644 --- a/sandbox/grist/objtypes.py +++ b/sandbox/grist/objtypes.py @@ -172,6 +172,8 @@ def encode_object(value): return str(value) elif isinstance(value, records.Record): return ['R', value._table.table_id, value._row_id] + elif isinstance(value, RecordStub): + return ['R', value.table_id, value.row_id] elif isinstance(value, datetime): return ['D', moment.dt_to_ts(value), value.tzinfo.zone.name if value.tzinfo else 'UTC'] elif isinstance(value, date):