mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-05-11 11:23:42 +03:00
Update example of nested data
This commit is contained in:
parent
311cad64c9
commit
e6308155dd
|
@ -28,11 +28,11 @@ Some example output from our serializer.
|
||||||
|
|
||||||
{
|
{
|
||||||
'title': 'Leaving party preperations',
|
'title': 'Leaving party preperations',
|
||||||
'items': {
|
'items': [
|
||||||
{'text': 'Compile playlist', 'is_completed': True},
|
{'text': 'Compile playlist', 'is_completed': True},
|
||||||
{'text': 'Send invites', 'is_completed': False},
|
{'text': 'Send invites', 'is_completed': False},
|
||||||
{'text': 'Clean house', 'is_completed': False}
|
{'text': 'Clean house', 'is_completed': False}
|
||||||
}
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
Let's take a look at updating our nested one-to-many data structure.
|
Let's take a look at updating our nested one-to-many data structure.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user