diff options
| author | Russell Keith-Magee <russell@keith-magee.com> | 2009-02-21 07:29:21 +0000 |
|---|---|---|
| committer | Russell Keith-Magee <russell@keith-magee.com> | 2009-02-21 07:29:21 +0000 |
| commit | d9b5a414ca2823bcbb8008c8d19efd8ad16f0c35 (patch) | |
| tree | c68658645201fa25889cc61da6bee990eebc7272 | |
| parent | 910aa0ea288e107c11c4f9973c88158d47fe2bd5 (diff) | |
[1.0.X] Fixed #8551 -- Added REMOTE_ADDR to the default Test Client environment. 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
| -rw-r--r-- | django/test/client.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/test/client.py b/django/test/client.py index ecc3a1c881..f4435c090f 100644 --- a/django/test/client.py +++ b/django/test/client.py @@ -189,6 +189,7 @@ class Client(object): 'HTTP_COOKIE': self.cookies, 'PATH_INFO': '/', 'QUERY_STRING': '', + 'REMOTE_ADDR': '127.0.0.1', 'REQUEST_METHOD': 'GET', 'SCRIPT_NAME': '', 'SERVER_NAME': 'testserver', |
