mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 01:47: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',
 | 
					        '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