问题:DjangoRestFramework Class Serializers missing "Meta" attribute?
解决如下:
添加上:
class Meta:
model = Goods
fields = ["name", "click_num","goods_front_image"] #对应的字段名
解决如下:
添加上:
class Meta:
model = Goods
fields = ["name", "click_num","goods_front_image"] #对应的字段名