def lazy_ajax(request):
if request.is_ajax():
news = {}
query = request.GET.get('value', 14)
news['news'] = News.objects.all()[query:]
return JsonResponse(json.dumps(news, ensure_ascii=False), content_type='application/json', safe=False)
TypeError: <QuerySet [<News: В Челябинске эксперты обсудят и т.д.