Ticket #3875: patch.txt

File patch.txt, 612 bytes (added by Scott Barr <scott@…>, 8 years ago)

file containing the patch

Line 
1Index: django/http/__init__.py
2===================================================================
3--- django/http/__init__.py     (revision 4839)
4+++ django/http/__init__.py     (working copy)
5@@ -291,6 +291,11 @@
6         HttpResponse.__init__(self, *args, **kwargs)
7         self.status_code = 410
8 
9+class HttpResponseBadRequest(HttpResponse):
10+    def __init__(self, *args, **kwargs):
11+        HttpResponse.__init__(self, *args, **kwargs)
12+        self.status_code = 400
13+
14 class HttpResponseServerError(HttpResponse):
15     def __init__(self, *args, **kwargs):
16         HttpResponse.__init__(self, *args, **kwargs)
Back to Top