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