1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +00:00

magic-removal: Fixed #1641 -- Changed WSGIRequest.get_full_path() to permit absent QUERY_STRING. Thanks, Kieran Holland

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2715 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2006-04-20 19:47:20 +00:00
parent 5f7e3144fc
commit 0eb9819fa5

View File

@ -63,7 +63,7 @@ class WSGIRequest(http.HttpRequest):
pformat(self.META)) pformat(self.META))
def get_full_path(self): def get_full_path(self):
return '%s%s' % (self.path, self.environ['QUERY_STRING'] and ('?' + self.environ['QUERY_STRING']) or '') return '%s%s' % (self.path, self.environ.get('QUERY_STRING', '') and ('?' + self.environ.get('QUERY_STRING', '')) or '')
def _load_post_and_files(self): def _load_post_and_files(self):
# Populates self._post and self._files # Populates self._post and self._files