Commit c0a9c2b6 authored by fred's avatar fred

fix jsonresponse to match what to_json produced

parent ab804dd5
......@@ -653,7 +653,7 @@ def onair(request):
d.update(get_current_nonstop_track())
if d.get('current_slot'):
del d['current_slot']
return JsonResponse(d)
return JsonResponse({'data': d})
class NewsItemDetailView(DetailView):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment