标签: python django api
我的代码:
class Meta: fields = ('name')
为什么
ProjectsCreateSerializer
不起作用?我看到所有对象,不仅是名称。
我希望{"name": ""}中字段的输出为{"name": "","isActive": false},但实际输出为reset_index
{"name": ""}
{"name": "","isActive": false}
reset_index