diff options
| author | Tom Christie | 2014-12-17 16:23:00 +0000 | 
|---|---|---|
| committer | Tom Christie | 2014-12-17 16:23:00 +0000 | 
| commit | 90b8f9221e633797c5ab6a25e6c2a14805d459af (patch) | |
| tree | c66e7096fb5e12ccd8dc7d7e0b835b14580ba1e5 /docs/tutorial/1-serialization.md | |
| parent | 265ed9377e457ec6b757ff07e0720b0ebefbb89d (diff) | |
| download | django-rest-framework-90b8f9221e633797c5ab6a25e6c2a14805d459af.tar.bz2 | |
Use six.BytesIO in tutorial. Closes #2296.
Diffstat (limited to 'docs/tutorial/1-serialization.md')
| -rw-r--r-- | docs/tutorial/1-serialization.md | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/docs/tutorial/1-serialization.md b/docs/tutorial/1-serialization.md index dea43cc0..aab5ce71 100644 --- a/docs/tutorial/1-serialization.md +++ b/docs/tutorial/1-serialization.md @@ -163,7 +163,7 @@ Deserialization is similar.  First we parse a stream into Python native datatype      # This import will use either `StringIO.StringIO` or `io.BytesIO`      # as appropriate, depending on if we're running Python 2 or Python 3. -    from rest_framework.compat import BytesIO +    from django.utils.six import BytesIO      stream = BytesIO(content)      data = JSONParser().parse(stream) | 
