serializers.py 299 B

123456789101112
  1. # @Author : Rocky
  2. # @File : serializers.py
  3. # @Time : 2023/7/24 13:35
  4. from rest_framework.serializers import ModelSerializer
  5. from background.models import ProductInfo
  6. class ProductInfoSerializer(ModelSerializer):
  7. class Meta:
  8. model = ProductInfo
  9. fields = '__all__'