Fixed fail

This commit is contained in:
David Taylor
2016-10-04 21:11:43 +01:00
parent 585f909d3f
commit a02087bf2a

View File

@@ -63,7 +63,7 @@ class EventOembed(generic.View):
'type': 'rich', 'type': 'rich',
} }
# need to do this: @xframe_options_exempt # need to do this: @xframe_options_exempt
json = simplejson.JSONEncoderForHTML(data) json = simplejson.JSONEncoderForHTML().encode(data)
return HttpResponse(json, content_type="application/json") return HttpResponse(json, content_type="application/json")