diff options
| author | Sergey Fursov <geyser85@gmail.com> | 2021-12-27 14:51:43 +0300 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-12-28 13:39:06 +0100 |
| commit | 76d24d5f165498b5743c72932b82b5824744f640 (patch) | |
| tree | 9bc4e235dfcf68fd365b6388b0a3ba2fb89abc93 /docs | |
| parent | c9ec72ea1bb15a070724b7aca9b34ee600ed52ff (diff) | |
[4.0.x] Updated example of YAML serialization format in docs.
Backport of feeb0685c62a793c55a058584ba1de45e74f80f7 from main
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/serialization.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/topics/serialization.txt b/docs/topics/serialization.txt index 586d7ff13a..ae826c15b9 100644 --- a/docs/topics/serialization.txt +++ b/docs/topics/serialization.txt @@ -330,9 +330,10 @@ YAML serialization looks quite similar to JSON. The object list is serialized as a sequence mappings with the keys "pk", "model" and "fields". Each field is again a mapping with the key being name of the field and the value the value:: - - fields: {expire_date: !!timestamp '2013-01-16 08:16:59.844560+00:00'} - model: sessions.session - pk: 4b678b301dfd8a4e0dad910de3ae245b + - model: sessions.session + pk: 4b678b301dfd8a4e0dad910de3ae245b + fields: + expire_date: 2013-01-16 08:16:59.844560+00:00 Referential fields are again represented by the PK or sequence of PKs. |
