mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-04-28 13:03:45 +03:00
Merge pull request #3721 from raphaelmerx/rm-format
Fixed suggestion for format in test renderer
This commit is contained in:
commit
ff4bc43a2f
|
@ -780,7 +780,7 @@ class MultiPartRenderer(BaseRenderer):
|
||||||
assert not isinstance(value, dict), (
|
assert not isinstance(value, dict), (
|
||||||
"Test data contained a dictionary value for key '%s', "
|
"Test data contained a dictionary value for key '%s', "
|
||||||
"but multipart uploads do not support nested data. "
|
"but multipart uploads do not support nested data. "
|
||||||
"You may want to consider using format='JSON' in this "
|
"You may want to consider using format='json' in this "
|
||||||
"test case." % key
|
"test case." % key
|
||||||
)
|
)
|
||||||
return encode_multipart(self.BOUNDARY, data)
|
return encode_multipart(self.BOUNDARY, data)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user