摘要: from rest_framework import serializers class MyModelSerializer(serializers.ModelSerializer): class Meta: model = MyModel fields = ['field1', 'field2'] 阅读全文
posted @ 2024-03-14 13:17 凯宾斯基 阅读(10) 评论(0) 推荐(0) 编辑