diff options
author | Russell Keith-Magee <russell@keith-magee.com> | 2011-04-02 08:50:05 +0000 |
---|---|---|
committer | Russell Keith-Magee <russell@keith-magee.com> | 2011-04-02 08:50:05 +0000 |
commit | 686ef6c7596ca1fcfde01212ca3ebcdeb9378e74 (patch) | |
tree | 2fe85e4530de10c60ba6b5b03cc4525cf44982f4 /django | |
parent | e6fe336f10d461b84989a88786a8fd0bfb489a3e (diff) | |
download | django-686ef6c7596ca1fcfde01212ca3ebcdeb9378e74.tar.gz |
[1.3.X] Fixed #15739 -- Added support to RedirectView for HEAD, OPTIONS, POST, PUT and DELETE requests
Backport of r15992 from trunk.
git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.3.X@15995 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django')
-rw-r--r-- | django/views/generic/base.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/django/views/generic/base.py b/django/views/generic/base.py index d732af5d66..1ac7fb89ee 100644 --- a/django/views/generic/base.py +++ b/django/views/generic/base.py @@ -161,3 +161,18 @@ class RedirectView(View): 'request': self.request }) return http.HttpResponseGone() + + def head(self, request, *args, **kwargs): + return self.get(request, *args, **kwargs) + + def post(self, request, *args, **kwargs): + return self.get(request, *args, **kwargs) + + def options(self, request, *args, **kwargs): + return self.get(request, *args, **kwargs) + + def delete(self, request, *args, **kwargs): + return self.get(request, *args, **kwargs) + + def put(self, request, *args, **kwargs): + return self.get(request, *args, **kwargs) |