From ceecc962ad8f6bbbc2b989aec53eee6c6cca04b9 Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Sat, 16 Nov 2013 00:54:20 +0100 Subject: Fixed #21447 -- Restored code erroneously removed in 20472aa827669d2b83b74e521504e88e18d086a1. Also added some tests for HttpRequest.__repr__. Note that the added tests don't actually catch the accidental code removal (see ticket) but they do cover a codepath that wasn't tested before. Thanks to Tom Christie for the report and the original patch. --- django/http/request.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/http/request.py') diff --git a/django/http/request.py b/django/http/request.py index 4d11fb21e0..1aefe6bf22 100644 --- a/django/http/request.py +++ b/django/http/request.py @@ -242,7 +242,7 @@ class HttpRequest(object): # Mark that an error occured. This allows self.__repr__ to # be explicit about it instead of simply representing an # empty POST - # self._mark_post_parse_error() + self._mark_post_parse_error() raise elif self.META.get('CONTENT_TYPE', '').startswith('application/x-www-form-urlencoded'): self._post, self._files = QueryDict(self.body, encoding=self._encoding), MultiValueDict() -- cgit v1.3