if request.is_ajax():
    return render_to_response('object_list.html', {'object_list': locs},
        context_instance=RequestContext(request))
return render_to_response('base.html', {'object_list': locs},
    context_instance=RequestContext(request))
Как вернуть словарь json в обновлении django ajax