aboutsummaryrefslogtreecommitdiffstats
path: root/docs/api-guide/parsers.md
diff options
context:
space:
mode:
authorTom Christie2012-10-18 09:19:38 +0100
committerTom Christie2012-10-18 09:19:38 +0100
commite8f542aac88677cd95c473d56511cadbc0c67813 (patch)
tree14c343429a712cb9d505f5e474333e423a1d052d /docs/api-guide/parsers.md
parente126b615420fed12af58675cb4bb52e749b006bd (diff)
downloaddjango-rest-framework-e8f542aac88677cd95c473d56511cadbc0c67813.tar.bz2
Minor docs fix
Diffstat (limited to 'docs/api-guide/parsers.md')
-rw-r--r--docs/api-guide/parsers.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/api-guide/parsers.md b/docs/api-guide/parsers.md
index 18a5872c..0985b2ca 100644
--- a/docs/api-guide/parsers.md
+++ b/docs/api-guide/parsers.md
@@ -91,7 +91,7 @@ You will typically want to use both `FormParser` and `MultiPartParser` together
# Custom parsers
-To implement a custom parser, you should override `BaseParser`, set the `.media_type` property, and implement the `.parse(self, stream, parser_context)` method.
+To implement a custom parser, you should override `BaseParser`, set the `.media_type` property, and implement the `.parse(self, stream, media_type, parser_context)` method.
The method should return the data that will be used to populate the `request.DATA` property.
@@ -103,7 +103,7 @@ A stream-like object representing the body of the request.
### media_type
-Optional. If provided, this is the media type of the incoming request.
+Optional. If provided, this is the media type of the incoming request content.
Depending on the request's `Content-Type:` header, this may be more specific than the renderer's `media_type` attribute, and may include media type parameters. For example `"text/plain; charset=utf-8"`.