diff options
| author | Tom Christie | 2012-11-08 20:43:15 +0000 | 
|---|---|---|
| committer | Tom Christie | 2012-11-08 20:43:23 +0000 | 
| commit | 0089f0faa716bd37ca29f9f2db98b4ab273e01f1 (patch) | |
| tree | 11f19a06934b4a581ad622180f6d4d06ea8c4e9c | |
| parent | f5ce7152ecd8c859f1553650bfef5975ce53ec99 (diff) | |
| download | django-rest-framework-0089f0faa716bd37ca29f9f2db98b4ab273e01f1.tar.bz2 | |
Add media_type to example file parser
| -rw-r--r-- | docs/api-guide/parsers.md | 1 | 
1 files changed, 1 insertions, 0 deletions
| diff --git a/docs/api-guide/parsers.md b/docs/api-guide/parsers.md index 59f00f99..185b616c 100644 --- a/docs/api-guide/parsers.md +++ b/docs/api-guide/parsers.md @@ -140,6 +140,7 @@ For example:          """          A naive raw file upload parser.          """ +        media_type = '*/*'  # Accept anything          def parse(self, stream, media_type=None, parser_context=None):              content = stream.read() | 
