Explorar o código

[oozie] Renaming HttpResponse to JsonReponse

Romain Rigaux %!s(int64=10) %!d(string=hai) anos
pai
achega
79a7aee
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      apps/oozie/src/oozie/views/editor2.py

+ 1 - 1
apps/oozie/src/oozie/views/editor2.py

@@ -520,7 +520,7 @@ def coordinator_parameters(request):
   except Exception, e:
     response['message'] = str(e)
     
-  return HttpResponse(json.dumps(response), mimetype="application/json")
+  return JsonResponse(response)
 
 
 @check_document_access_permission()