ports/www/py-graphite-web/files/patch-webapp__graphite__events__views.py
Steve Wills c8031363ae www/py-graphite-web: add patches to make graphite work with django 1.7
While here, pet portlint and improve pkg-message a bit

Reported by:	brd
2014-09-14 03:58:14 +00:00

16 lines
589 B
Python

--- webapp/graphite/events/views.py.orig 2014-09-14 03:00:52 UTC
+++ webapp/graphite/events/views.py
@@ -65,11 +65,11 @@
response = HttpResponse(
"%s(%s)" % (request.REQUEST.get('jsonp'),
json.dumps(fetch(request), cls=EventEncoder)),
- mimetype='text/javascript')
+ content_type='text/javascript')
else:
response = HttpResponse(
json.dumps(fetch(request), cls=EventEncoder),
- mimetype="application/json")
+ content_type="application/json")
return response
def fetch(request):