📅  最后修改于: 2022-03-11 14:45:18.689000             🧑  作者: Mango
def get_AJAX(request, id):
data = serializers.serialize("json", [Template.objects.get(pk=id)])
return HttpResponse(data)