在哪里查找django中的json序列化数据

时间:2014-12-10 16:06:28

标签: python django django-models jsonserializer

有一个代码,其中使用django序列化程序将django模型序列化为json类型。

result = Items.objects.filter(product_type__name = subcategory)
result = result.filter(item_name__icontains=autoc)
result = serializers.serialize('json', result, fields=('item_name',))

必须有一个序列化程序存储模型“项目”数据的位置。我想知道什么是数据。数据存储在哪里? 提前谢谢。

0 个答案:

没有答案