From fcc0a70f7c4ca1faf1a9801d369ff53029e450c6 Mon Sep 17 00:00:00 2001 From: Raphael Merx Date: Thu, 10 Dec 2015 15:13:47 -0800 Subject: [PATCH] Fixed suggestion for format in test renderer Rendered would suggest using format='JSON' when the right argument is format='json'. --- rest_framework/renderers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rest_framework/renderers.py b/rest_framework/renderers.py index dafaf7de6..fa64f88ed 100644 --- a/rest_framework/renderers.py +++ b/rest_framework/renderers.py @@ -780,7 +780,7 @@ class MultiPartRenderer(BaseRenderer): assert not isinstance(value, dict), ( "Test data contained a dictionary value for key '%s', " "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 ) return encode_multipart(self.BOUNDARY, data)