from rest_framework import serializers

from .models import UserProfile, UserStatus, Feedback


class UserProfileSerializer(serializers.ModelSerializer):

    #user_status = serializers.StringRelatedField(many=True)

    class Meta:
        fields = (
            'firstName',
            'lastName',
            'email_id',
            'address',
            'password',
            'role'
        )
        model = UserProfile


class FeedbackSerializer(serializers.ModelSerializer):


    class Meta:
        fields = (
                    'appointment_id',
                    'firstName',
                    'lastName',
                    'email_id',
                    'review'
        )
        model = Feedback


class UserStatusSerializer(serializers.ModelSerializer):
    class Meta:
        fields = (
            'status',
            'updated_time',
            'is_active',
            'user_id',
        )
        model = UserStatus

655e9f1ee832b4f97554561dc3ff6d0e7a58e522
<mask token>


class UserStatusSerializer(serializers.ModelSerializer):


    class Meta:
        fields = 'status', 'updated_time', 'is_active', 'user_id'
        model = UserStatus

<mask token>


class FeedbackSerializer(serializers.ModelSerializer):


    class Meta:
        fields = ('appointment_id', 'firstName', 'lastName', 'email_id',
            'review')
        model = Feedback


class UserStatusSerializer(serializers.ModelSerializer):


    class Meta:
        fields = 'status', 'updated_time', 'is_active', 'user_id'
        model = UserStatus

<mask token>


class UserProfileSerializer(serializers.ModelSerializer):


    class Meta:
        fields = ('firstName', 'lastName', 'email_id', 'address',
            'password', 'role')
        model = UserProfile


class FeedbackSerializer(serializers.ModelSerializer):


    class Meta:
        fields = ('appointment_id', 'firstName', 'lastName', 'email_id',
            'review')
        model = Feedback


class UserStatusSerializer(serializers.ModelSerializer):


    class Meta:
        fields = 'status', 'updated_time', 'is_active', 'user_id'
        model = UserStatus

from rest_framework import serializers
from .models import UserProfile, UserStatus, Feedback


class UserProfileSerializer(serializers.ModelSerializer):


    class Meta:
        fields = ('firstName', 'lastName', 'email_id', 'address',
            'password', 'role')
        model = UserProfile


class FeedbackSerializer(serializers.ModelSerializer):


    class Meta:
        fields = ('appointment_id', 'firstName', 'lastName', 'email_id',
            'review')
        model = Feedback


class UserStatusSerializer(serializers.ModelSerializer):


    class Meta:
        fields = 'status', 'updated_time', 'is_active', 'user_id'
        model = UserStatus

from rest_framework import serializers

from .models import UserProfile, UserStatus, Feedback


class UserProfileSerializer(serializers.ModelSerializer):

    #user_status = serializers.StringRelatedField(many=True)

    class Meta:
        fields = (
            'firstName',
            'lastName',
            'email_id',
            'address',
            'password',
            'role'
        )
        model = UserProfile


class FeedbackSerializer(serializers.ModelSerializer):


    class Meta:
        fields = (
                    'appointment_id',
                    'firstName',
                    'lastName',
                    'email_id',
                    'review'
        )
        model = Feedback


class UserStatusSerializer(serializers.ModelSerializer):
    class Meta:
        fields = (
            'status',
            'updated_time',
            'is_active',
            'user_id',
        )
        model = UserStatus
