HttpResponse expects content_type, mimetype was an old thing and was removed in 1.7
[unfold.git] / portal / views / __init__.py
index d58593c..7ed4e08 100644 (file)
@@ -139,7 +139,7 @@ def pres_view_methods(request, type):
         config.close()
     else:
         return 0
-    return HttpResponse (json_answer, mimetype="application/json")
+    return HttpResponse (json_answer, content_type="application/json")
 
 def pres_view_animation(request, constraints, id):
 
@@ -184,7 +184,7 @@ def pres_view_animation(request, constraints, id):
     }]
 
     json_answer = json.dumps(cmd)
-    return HttpResponse (json_answer, mimetype="application/json")
+    return HttpResponse (json_answer, content_type="application/json")
 
 def pres_view_static(request, constraints, id):
     #constraints = "']date_created':1262325600"
@@ -221,4 +221,4 @@ def pres_view_static(request, constraints, id):
     }]
 
     json_answer = json.dumps(cmd)
-    return HttpResponse (json_answer, mimetype="application/json")
+    return HttpResponse (json_answer, content_type="application/json")