摘要: 序列化组件: --Serializer 1、重命名:用source: xx = serializers.CharField(source='name') 2、取出版社名字: 方式一: -在模型表中重写__str__方法 -publish=serializers.CharField() 方式二: -用 阅读全文
posted @ 2018-12-11 17:18 zhouhao666 阅读(138) 评论(0) 推荐(0)