Exemplo n.º 1
0
def detail_json(request,id):
	channel = Channel.objects.filter(pk=id).values()
	json = queryset_to_json(channel)
	return HttpResponse(json, mimetype='application/json')
Exemplo n.º 2
0
def latest_active_json(request):
	channels = Channel.objects.all().values()
	json = queryset_to_json(channels)
	return HttpResponse(json, mimetype='application/json')