Permalink
Browse files

[1.0.X] Fixed #8551 -- Added REMOTE_ADDR to the default Test Client e…

…nvironment. Thanks to schmichael for the report and patch.

Merge of r9847 from trunk.


git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.0.X@9848 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 910aa0e commit d9b5a414ca2823bcbb8008c8d19efd8ad16f0c35 @freakboy3742 freakboy3742 committed Feb 21, 2009
Showing with 1 addition and 0 deletions.
  1. +1 −0 django/test/client.py
View
1 django/test/client.py
@@ -189,6 +189,7 @@ def request(self, **request):
'HTTP_COOKIE': self.cookies,
'PATH_INFO': '/',
'QUERY_STRING': '',
+ 'REMOTE_ADDR': '127.0.0.1',
'REQUEST_METHOD': 'GET',
'SCRIPT_NAME': '',
'SERVER_NAME': 'testserver',

0 comments on commit d9b5a41

Please sign in to comment.