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

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

angular - Copying node modules to wwwroot AspNetCore -