mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Merge pull request #2810 from robhudson/patch-1
Update example of nested data
This commit is contained in:
commit
970bfe16ec
|
@ -28,11 +28,11 @@ Some example output from our serializer.
|
|||
|
||||
{
|
||||
'title': 'Leaving party preperations',
|
||||
'items': {
|
||||
'items': [
|
||||
{'text': 'Compile playlist', 'is_completed': True},
|
||||
{'text': 'Send invites', 'is_completed': False},
|
||||
{'text': 'Clean house', 'is_completed': False}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Let's take a look at updating our nested one-to-many data structure.
|
||||
|
|
Loading…
Reference in New Issue
Block a user