会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
这里是你的通告内容
春生
Be humble, communicate clearly, and respect others.
PythonAV
博客园
首页
新随笔
联系
订阅
管理
2018年12月8日
DRF 序列化组件
摘要: 自定义 序列化 组件 用法 更简洁的序列化类 serializers.ModelSerializer 只需要把 字段 按照列表的形式给 fields 就可以了 多对多 一对多 也是自己定义 __all__ 就是把所有的字段 显示出来
阅读全文
posted @ 2018-12-08 12:38 PythonAV
阅读(225)
评论(0)
推荐(0)
编辑
公告