<reponame>xautshuanglong/PythonWebApp<gh_stars>0
from rest_framework import serializers

from .models import UserInfo


class UserInfoSerializer(serializers.ModelSerializer):
    class Meta:
        model = UserInfo
        fields = ('id', 'name', 'sex')
from rest_framework import serializers

from .models import UserInfo


class UserInfoSerializer(serializers.ModelSerializer):
    class Meta:
        model = UserInfo
        fields = ('id', 'name', 'sex')