from rest_framework import serializers
from hotel.models import Type
from hotel.models import Room
from hotel.models import Client


class TypeSerializer(serializers.ModelSerializer):


    class Meta:
        model = Type
        fields = ['id', 'name']


class RoomSerializer(serializers.ModelSerializer):


    class Meta:
        model = Room
        fields = ['id', 'number', 'description', 'price', 'type']


class ClientSerializer(serializers.ModelSerializer):


    class Meta:
        model = Client
        fields = ['document', 'name', 'lastname', 'email', 'password']

495eb30f0be3e6dfd49f9200a6eca9d23687ff31
<mask token>


class ClientSerializer(serializers.ModelSerializer):


    class Meta:
        model = Client
        fields = ['document', 'name', 'lastname', 'email', 'password']

<mask token>


class RoomSerializer(serializers.ModelSerializer):


    class Meta:
        model = Room
        fields = ['id', 'number', 'description', 'price', 'type']


class ClientSerializer(serializers.ModelSerializer):


    class Meta:
        model = Client
        fields = ['document', 'name', 'lastname', 'email', 'password']

<mask token>


class TypeSerializer(serializers.ModelSerializer):


    class Meta:
        model = Type
        fields = ['id', 'name']


class RoomSerializer(serializers.ModelSerializer):


    class Meta:
        model = Room
        fields = ['id', 'number', 'description', 'price', 'type']


class ClientSerializer(serializers.ModelSerializer):


    class Meta:
        model = Client
        fields = ['document', 'name', 'lastname', 'email', 'password']

from rest_framework import serializers
from hotel.models import Type
from hotel.models import Room
from hotel.models import Client


class TypeSerializer(serializers.ModelSerializer):


    class Meta:
        model = Type
        fields = ['id', 'name']


class RoomSerializer(serializers.ModelSerializer):


    class Meta:
        model = Room
        fields = ['id', 'number', 'description', 'price', 'type']


class ClientSerializer(serializers.ModelSerializer):


    class Meta:
        model = Client
        fields = ['document', 'name', 'lastname', 'email', 'password']
