Explicitly define height in oembed JSON

This commit is contained in:
David Taylor
2017-03-10 15:26:00 +00:00
committed by GitHub
parent 9694d407ae
commit 0ae7bcaf7c

View File

@@ -61,6 +61,7 @@ class EventOembed(generic.View):
'html': '<iframe src="{0}" frameborder="0" width="100%" height="250"></iframe>'.format(full_url),
'version': '1.0',
'type': 'rich',
'height': '250'
}
json = simplejson.JSONEncoderForHTML().encode(data)