diff options
Diffstat (limited to 'django/test')
| -rw-r--r-- | django/test/client.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/django/test/client.py b/django/test/client.py index 682dd01261..95d3b85922 100644 --- a/django/test/client.py +++ b/django/test/client.py @@ -69,6 +69,14 @@ def encode_multipart(boundary, data): '', value.read() ]) + elif hasattr(value, '__iter__'): + for item in value: + lines.extend([ + '--' + boundary, + 'Content-Disposition: form-data; name="%s"' % key, + '', + str(item) + ]) else: lines.extend([ '--' + boundary, |
