1
0
mirror of https://github.com/django/django.git synced 2025-10-27 15:46:10 +00:00

Added 'method' attribute to HttpRequest objects

git-svn-id: http://code.djangoproject.com/svn/django/trunk@3164 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty
2006-06-20 03:48:31 +00:00
parent a09682fd63
commit 136752ca9a
4 changed files with 22 additions and 2 deletions

View File

@@ -55,6 +55,7 @@ class WSGIRequest(http.HttpRequest):
self.environ = environ
self.path = environ['PATH_INFO']
self.META = environ
self.method = environ['REQUEST_METHOD'].upper()
def __repr__(self):
from pprint import pformat