summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2014-01-16 17:44:20 +0100
committerClaude Paroz <claude@2xlibre.net>2014-01-16 17:44:20 +0100
commit2a31d00933fd1d06ae3013f2c0eb8f4982fa7db6 (patch)
tree4e666f18e868f66ad558d459a576a1c9adb36be1 /docs
parenta6e3fb80b0e079c49da722515ed71768022264b8 (diff)
Fixed #21740 -- Stopped using mutable default arguments in test client
Thanks Denver Coneybeare for the report and initial patch, and Atala for another patch.
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/testing/tools.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt
index 680c1dd17c..a51c0e3ad8 100644
--- a/docs/topics/testing/tools.txt
+++ b/docs/topics/testing/tools.txt
@@ -129,7 +129,7 @@ Use the ``django.test.Client`` class to make requests.
Once you have a ``Client`` instance, you can call any of the following
methods:
- .. method:: Client.get(path, data={}, follow=False, secure=False, **extra)
+ .. method:: Client.get(path, data=None, follow=False, secure=False, **extra)
.. versionadded:: 1.7
@@ -192,7 +192,7 @@ Use the ``django.test.Client`` class to make requests.
If you set ``secure`` to ``True`` the client will emulate an HTTPS
request.
- .. method:: Client.post(path, data={}, content_type=MULTIPART_CONTENT, follow=False, secure=False, **extra)
+ .. method:: Client.post(path, data=None, content_type=MULTIPART_CONTENT, follow=False, secure=False, **extra)
Makes a POST request on the provided ``path`` and returns a
``Response`` object, which is documented below.
@@ -269,7 +269,7 @@ Use the ``django.test.Client`` class to make requests.
If you set ``secure`` to ``True`` the client will emulate an HTTPS
request.
- .. method:: Client.head(path, data={}, follow=False, secure=False, **extra)
+ .. method:: Client.head(path, data=None, follow=False, secure=False, **extra)
Makes a HEAD request on the provided ``path`` and returns a
``Response`` object. This method works just like :meth:`Client.get`,