diff options
| author | Philip Douglas | 2013-08-16 07:15:09 -0700 |
|---|---|---|
| committer | Philip Douglas | 2013-08-16 07:15:09 -0700 |
| commit | ef7ce344865938bea285a408a7cc415a7b90a83c (patch) | |
| tree | 1bfa78c86e422f81cf836319d91c626c763d5b24 /docs/api-guide/responses.md | |
| parent | c058ab36b13a6979c57760d9af2eb21ec3165e7d (diff) | |
| parent | c1ccd8b5b5aef1bd209862f9431c9c03e25ae755 (diff) | |
| download | django-rest-framework-ef7ce344865938bea285a408a7cc415a7b90a83c.tar.bz2 | |
Merge pull request #3 from tomchristie/master
Update to latest
Diffstat (limited to 'docs/api-guide/responses.md')
| -rw-r--r-- | docs/api-guide/responses.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/api-guide/responses.md b/docs/api-guide/responses.md index 399b7c23..5a42aa92 100644 --- a/docs/api-guide/responses.md +++ b/docs/api-guide/responses.md @@ -24,7 +24,7 @@ Unless you want to heavily customize REST framework for some reason, you should Unlike regular `HttpResponse` objects, you do not instantiate `Response` objects with rendered content. Instead you pass in unrendered data, which may consist of any Python primitives. -The renderers used by the `Response` class cannot natively handle complex datatypes such as Django model instances, so you need to serialize the data into primative datatypes before creating the `Response` object. +The renderers used by the `Response` class cannot natively handle complex datatypes such as Django model instances, so you need to serialize the data into primitive datatypes before creating the `Response` object. You can use REST framework's `Serializer` classes to perform this data serialization, or use your own custom serialization. @@ -54,7 +54,7 @@ The rendered content of the response. The `.render()` method must have been cal ## .template_name -The `template_name`, if supplied. Only required if `HTMLRenderer` or some other custom template renderer is the accepted renderer for the reponse. +The `template_name`, if supplied. Only required if `HTMLRenderer` or some other custom template renderer is the accepted renderer for the response. ## .accepted_renderer |
