标签:
import json data = json.dumps(list(my_table.objects.all().values())) return HttpResponse(data)
QuerySet转化为JSON
原文地址:http://www.cnblogs.com/yestreenstars/p/5856474.html