Serializer 嵌套使用
摘要:
class TeacherSerializer(ModelSerializer): """讲师序列化器""" class Meta: model = Teacher fields = [ 'name', 'brief' ] class CourseSerializer(ModelSerializer 阅读全文
posted @ 2021-07-01 22:28 信奉上帝的小和尚 阅读(124) 评论(0) 推荐(0) 编辑