标签:apt model 课程 res frame ali 技术 http framework
from goods.serializers import GoodsSerializer class CourseDeepSerializer(CourseSer): goods_set = GoodsSerializer(many=True) chapters = ChaptersSer(many=True)
# -*- coding: utf-8 -*- from rest_framework import serializers from goods.models import Goods class GoodsSerializer(serializers.ModelSerializer): class Meta: model = Goods fields = ‘__all__‘ #所有字段
http://192.168.56.100:8888/course/course/1/
标签:apt model 课程 res frame ali 技术 http framework
原文地址:https://www.cnblogs.com/gaodenghan/p/13948713.html