如何从查询集返回json - A.objects.all()到引导表(http://wenzhixin.net.cn/p/bootstrap-table/docs/examples.html):
<table data-toggle="table" data-url="data" data-cache="false" data-height="299">
<thead>
<tr>
<th data-field="id">Item ID</th>
<th data-field="name">Name</th>
</tr>
</thead>
</table>
在意见中:
data = serializers.serialize("json", A.objects.all())
return render(request, 'a.html', {'data': data})