diff options
| author | tom christie tom@tomchristie.com | 2011-02-04 21:52:21 +0000 |
|---|---|---|
| committer | tom christie tom@tomchristie.com | 2011-02-04 21:52:21 +0000 |
| commit | fcd7f414c407c8dab7c0badbfa16476826dad3ae (patch) | |
| tree | 4d532d354e5f63b0ab31212d2dfc26d937c2720d /djangorestframework/response.py | |
| parent | eebcdc4dc0e3b34fa76eca638c469b1e79240844 (diff) | |
| download | django-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.py | 2 |
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 |
