change mimetype to content_type
diff --git a/planetstack/core/dashboard/views/analytics.py b/planetstack/core/dashboard/views/analytics.py
index 09d1bbc..e1794c1 100644
--- a/planetstack/core/dashboard/views/analytics.py
+++ b/planetstack/core/dashboard/views/analytics.py
@@ -1,9 +1,10 @@
from view_common import *
+import random
class DashboardAnalyticsAjaxView(View):
def get(self, request, name="hello_world", **kwargs):
if (name == "bigquery"):
(mimetype, data) = DoPlanetStackAnalytics(request)
- return HttpResponse(data, mimetype=mimetype)
+ return HttpResponse(data, content_type=mimetype)
else:
- return HttpResponse(json.dumps("Unknown"), mimetype='application/javascript')
+ return HttpResponse(json.dumps("Unknown"), content_type='application/javascript')