summaryrefslogtreecommitdiff
path: root/django/utils/httpwrappers.py
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2005-09-01 05:01:47 +0000
committerAdrian Holovaty <adrian@holovaty.com>2005-09-01 05:01:47 +0000
commitaf8b7ffa8e8d797925694691873afb96a77cc6f2 (patch)
tree8000962a4620a9e0aa2c5c2695a542bfce63329d /django/utils/httpwrappers.py
parente07fee6511ae64db6af5b40f769c7b58bac9311d (diff)
Refactored the HttpResponse subclasses a tiny bit to use args and kwargs instead of hard-coded init() params
git-svn-id: http://code.djangoproject.com/svn/django/trunk@591 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils/httpwrappers.py')
-rw-r--r--django/utils/httpwrappers.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/django/utils/httpwrappers.py b/django/utils/httpwrappers.py
index e4679bb8c7..4a648d1849 100644
--- a/django/utils/httpwrappers.py
+++ b/django/utils/httpwrappers.py
@@ -200,21 +200,21 @@ class HttpResponseNotModified(HttpResponse):
self.status_code = 304
class HttpResponseNotFound(HttpResponse):
- def __init__(self, content='', mimetype=DEFAULT_MIME_TYPE):
- HttpResponse.__init__(self, content, mimetype)
+ def __init__(self, *args, **kwargs):
+ HttpResponse.__init__(self, *args, **kwargs)
self.status_code = 404
class HttpResponseForbidden(HttpResponse):
- def __init__(self, content='', mimetype=DEFAULT_MIME_TYPE):
- HttpResponse.__init__(self, content, mimetype)
+ def __init__(self, *args, **kwargs):
+ HttpResponse.__init__(self, *args, **kwargs)
self.status_code = 403
class HttpResponseGone(HttpResponse):
- def __init__(self, content='', mimetype=DEFAULT_MIME_TYPE):
- HttpResponse.__init__(self, content, mimetype)
+ def __init__(self, *args, **kwargs):
+ HttpResponse.__init__(self, *args, **kwargs)
self.status_code = 410
class HttpResponseServerError(HttpResponse):
- def __init__(self, content='', mimetype=DEFAULT_MIME_TYPE):
- HttpResponse.__init__(self, content, mimetype)
+ def __init__(self, *args, **kwargs):
+ HttpResponse.__init__(self, *args, **kwargs)
self.status_code = 500