diff options
| author | Tom Christie | 2011-05-12 16:03:14 +0100 |
|---|---|---|
| committer | Tom Christie | 2011-05-12 16:03:14 +0100 |
| commit | 44c8b89c6051483677e72a6fc657b1e0457182d1 (patch) | |
| tree | 54c393760388269e6f616aac1218c67e4915d042 /djangorestframework/tests/files.py | |
| parent | a31a68d6cba30c95251dad70bf4d18f83f782c67 (diff) | |
| download | django-rest-framework-44c8b89c6051483677e72a6fc657b1e0457182d1.tar.bz2 | |
_perform_form_overloading becomes transparent
Diffstat (limited to 'djangorestframework/tests/files.py')
| -rw-r--r-- | djangorestframework/tests/files.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/djangorestframework/tests/files.py b/djangorestframework/tests/files.py index afa59b4e..3892422c 100644 --- a/djangorestframework/tests/files.py +++ b/djangorestframework/tests/files.py @@ -24,8 +24,8 @@ class UploadFilesTests(TestCase): resource = MockResource def post(self, request, *args, **kwargs): - return {'FILE_NAME': self.CONTENT['file'].name, - 'FILE_CONTENT': self.CONTENT['file'].read()} + return {'FILE_NAME': self.CONTENT['file'][0].name, + 'FILE_CONTENT': self.CONTENT['file'][0].read()} file = StringIO.StringIO('stuff') file.name = 'stuff.txt' |
