Answers for "django serialize a get object is not iterable"

0

django serialize a get object is not iterable

def get_AJAX(request, id):
    data = serializers.serialize("json", [Template.objects.get(pk=id)])
    return HttpResponse(data)
Posted by: Guest on August-05-2021

Code answers related to "django serialize a get object is not iterable"

Python Answers by Framework

Browse Popular Code Answers by Language