From d52b4c5c6109c2d52125cb3dde16f9ce4004a98d Mon Sep 17 00:00:00 2001 From: Tom Christie Date: Wed, 5 Sep 2012 21:26:26 +0100 Subject: [PATCH] Correct media type for jsonp --- djangorestframework/renderers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/djangorestframework/renderers.py b/djangorestframework/renderers.py index 70c0dc88c..6a280de76 100644 --- a/djangorestframework/renderers.py +++ b/djangorestframework/renderers.py @@ -121,8 +121,8 @@ class JSONPRenderer(JSONRenderer): Renderer which serializes to JSONP """ - media_type = 'application/json-p' - format = 'json-p' + media_type = 'application/javascript' + format = 'jsonp' renderer_class = JSONRenderer callback_parameter = 'callback'