python - Deserializing data with nested natural keys in Django -
i'm trying deserialize data json file contains nested natural keys. me seems nested natural keys not supported, or i'm doing wrong.
the json try load looks this:
{ "model": "order.order", "fields": { "shop": [123, "demo"], "reference": "demo1", } }, { "model": "order.item", "fields": { "order": [[123, "demo"], "demo1"] } } the natural key order (shop_id, reference), shop it's (account_id, name). deserializing orders works fine.
are nested natural keys supported django?
Comments
Post a Comment