摘要:
drf源码save以及response 一.save python if self.instance is not None: self.instance = self.update(self.instance, validated_data) assert self.instance is not 阅读全文
摘要:
0905自我总结 drf框架serializers中ModelSerializer类 https://www.cnblogs.com/pythonywy/p/11455508.html 一.简单的使用 导入 注意点 其中 与`exclude`不能共存 不能控制显示字段,与外键相关的表会全部显示出来 阅读全文