Compare commits
No commits in common. "fdd5101bc7af5a84415161b05ad9858c6e5bd148" and "190e07ef90741fe9f8df10426cf5ad2534465104" have entirely different histories.
fdd5101bc7
...
190e07ef90
2 changed files with 3 additions and 2 deletions
|
|
@ -247,7 +247,7 @@ def getEmbedDefaults(request, data):
|
|||
level = settings.CONFIG['capabilities']['canSeeItem']['guest']
|
||||
qs = Item.objects.filter(level__lte=level, rendered=True).order_by('sort__public_id')
|
||||
if qs.exists():
|
||||
i = qs[0].cache
|
||||
i = qs[0].json
|
||||
response['data']['item'] = i['id']
|
||||
response['data']['itemDuration'] = i['duration']
|
||||
response['data']['itemRatio'] = i['videoRatio']
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ from __future__ import division, absolute_import
|
|||
import json
|
||||
|
||||
from django.shortcuts import render_to_response
|
||||
from django.template import RequestContext
|
||||
from django.conf import settings
|
||||
|
||||
from ..shortcuts import render_to_json_response, json_response, HttpErrorJson
|
||||
|
|
@ -26,7 +27,7 @@ def api(request):
|
|||
for f in sorted(methods):
|
||||
api.append({'name': f,
|
||||
'doc': actions.doc(f).replace('\n', '<br>\n')})
|
||||
context = {
|
||||
context = RequestContext(request, {
|
||||
'api': api,
|
||||
'settings': settings,
|
||||
'sitename': settings.SITENAME
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue