diff options
| author | Tom Christie | 2013-03-17 19:59:13 +0000 | 
|---|---|---|
| committer | Tom Christie | 2013-03-17 19:59:13 +0000 | 
| commit | ef0caf64d326bacdf367e002e5537b8c0d444d34 (patch) | |
| tree | 3fa9a20e77a8daca24f0783c600eca6523b9a736 /docs/tutorial/1-serialization.md | |
| parent | e80d3d1bdfb071a288340555cb6fe8a9bce3772d (diff) | |
| download | django-rest-framework-ef0caf64d326bacdf367e002e5537b8c0d444d34.tar.bz2 | |
Extra note on  method
Diffstat (limited to 'docs/tutorial/1-serialization.md')
| -rw-r--r-- | docs/tutorial/1-serialization.md | 6 | 
1 files changed, 5 insertions, 1 deletions
| diff --git a/docs/tutorial/1-serialization.md b/docs/tutorial/1-serialization.md index 6709f751..205ee7e0 100644 --- a/docs/tutorial/1-serialization.md +++ b/docs/tutorial/1-serialization.md @@ -126,7 +126,11 @@ The first thing we need to get started on our Web API is provide a way of serial          def restore_object(self, attrs, instance=None):              """ -            Create or update a new snippet instance. +            Create or update a new snippet instance, given a dictionary +            of deserialized field values. +             +            Note that if we don't define this method, then deserializing +            data will simply return a dictionary of items.              """              if instance:                  # Update existing instance | 
