Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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...
commit d9b5a414ca2823bcbb8008c8d19efd8ad16f0c35 1 parent 910aa0e
Russell Keith-Magee authored

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  django/test/client.py
1  django/test/client.py
@@ -189,6 +189,7 @@ def request(self, **request):
189 189
             'HTTP_COOKIE':      self.cookies,
190 190
             'PATH_INFO':         '/',
191 191
             'QUERY_STRING':      '',
  192
+            'REMOTE_ADDR':       '127.0.0.1',
192 193
             'REQUEST_METHOD':    'GET',
193 194
             'SCRIPT_NAME':       '',
194 195
             'SERVER_NAME':       'testserver',

0 notes on commit d9b5a41

Please sign in to comment.
Something went wrong with that request. Please try again.