django serialize a get object is not iterable

Solutions on MaxInterview for django serialize a get object is not iterable by the best coders in the world

showing results for - "django serialize a get object is not iterable"
Karl
26 Aug 2017
1def get_AJAX(request, id):
2    data = serializers.serialize("json", [Template.objects.get(pk=id)])
3    return HttpResponse(data)
4
similar questions