aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Ordoquy2014-03-22 10:53:51 +0100
committerXavier Ordoquy2014-03-22 10:53:51 +0100
commitc02c5c84fe9643b260858cf1682c247f8c81edc4 (patch)
treea0d6527407df351f819f4e26efc064f7811970dd
parentb04cd570504df0415d5f52b6e5cee490f9219cf2 (diff)
parent3b71be725a727be802eb2e43d4d155b734320023 (diff)
downloaddjango-rest-framework-c02c5c84fe9643b260858cf1682c247f8c81edc4.tar.bz2
Merge pull request #1483 from dn0/querydict-bug
Fixed encoding parameter in QueryDict
-rw-r--r--rest_framework/request.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rest_framework/request.py b/rest_framework/request.py
index ca70b49e..40467c03 100644
--- a/rest_framework/request.py
+++ b/rest_framework/request.py
@@ -346,7 +346,7 @@ class Request(object):
media_type = self.content_type
if stream is None or media_type is None:
- empty_data = QueryDict('', self._request._encoding)
+ empty_data = QueryDict('', encoding=self._request._encoding)
empty_files = MultiValueDict()
return (empty_data, empty_files)
@@ -362,7 +362,7 @@ class Request(object):
# re-raise. Ensures we don't simply repeat the error when
# attempting to render the browsable renderer response, or when
# logging the request or similar.
- self._data = QueryDict('', self._request._encoding)
+ self._data = QueryDict('', encoding=self._request._encoding)
self._files = MultiValueDict()
raise