aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/response.py
diff options
context:
space:
mode:
authortom christie tom@tomchristie.com2011-02-04 21:52:21 +0000
committertom christie tom@tomchristie.com2011-02-04 21:52:21 +0000
commitfcd7f414c407c8dab7c0badbfa16476826dad3ae (patch)
tree4d532d354e5f63b0ab31212d2dfc26d937c2720d /djangorestframework/response.py
parenteebcdc4dc0e3b34fa76eca638c469b1e79240844 (diff)
downloaddjango-rest-framework-fcd7f414c407c8dab7c0badbfa16476826dad3ae.tar.bz2
Huge stack of refactoring getting stuff into Mixin classes, and loads of tests. Kickass.
Diffstat (limited to 'djangorestframework/response.py')
-rw-r--r--djangorestframework/response.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/djangorestframework/response.py b/djangorestframework/response.py
index 4f23bb0a..e807eeb5 100644
--- a/djangorestframework/response.py
+++ b/djangorestframework/response.py
@@ -106,7 +106,7 @@ class NoContent(object):
class Response(object):
- def __init__(self, status, content=NoContent, headers={}):
+ def __init__(self, status=200, content=NoContent, headers={}):
self.status = status
self.has_content_body = not content is NoContent
self.raw_content = content # content prior to filtering