From fcd7f414c407c8dab7c0badbfa16476826dad3ae Mon Sep 17 00:00:00 2001 From: tom christie tom@tomchristie.com Date: Fri, 4 Feb 2011 21:52:21 +0000 Subject: Huge stack of refactoring getting stuff into Mixin classes, and loads of tests. Kickass. --- djangorestframework/response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'djangorestframework/response.py') 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 -- cgit v1.2.3