摘要: 阅读全文
posted @ 2018-06-21 18:43 强仔必胜 阅读(101) 评论(0) 推荐(0)
摘要: 1 source='get_course_type_display' choice字段 2 source指定 一对一 一对多 参考 3定义一个方法进行for循环取出 一对多(反向) 多对多 authors=serializers.SerializerMethodField() def get_aut 阅读全文
posted @ 2018-06-21 16:00 强仔必胜 阅读(203) 评论(0) 推荐(0)