from rest_framework import serializers
from .models import Soporte, PQR


class SoporteSerializer(serializers.ModelSerializer):


    class Meta:
        model = Soporte
        fields = '__all__'


class PQRSerializer(serializers.ModelSerializer):
    soporte = SoporteSerializer(read_only=True)


    class Meta:
        model = PQR
        fields = ['id', 'soporte', 'tipo', 'info']

c80906fc1bd68ed23498f40f8de5bd85bc1949e4
<mask token>


class PQRSerializer(serializers.ModelSerializer):
    <mask token>


    class Meta:
        model = PQR
        fields = ['id', 'soporte', 'tipo', 'info']

<mask token>


class PQRSerializer(serializers.ModelSerializer):
    soporte = SoporteSerializer(read_only=True)


    class Meta:
        model = PQR
        fields = ['id', 'soporte', 'tipo', 'info']

<mask token>


class SoporteSerializer(serializers.ModelSerializer):


    class Meta:
        model = Soporte
        fields = '__all__'


class PQRSerializer(serializers.ModelSerializer):
    soporte = SoporteSerializer(read_only=True)


    class Meta:
        model = PQR
        fields = ['id', 'soporte', 'tipo', 'info']

from rest_framework import serializers
from .models import Soporte, PQR


class SoporteSerializer(serializers.ModelSerializer):


    class Meta:
        model = Soporte
        fields = '__all__'


class PQRSerializer(serializers.ModelSerializer):
    soporte = SoporteSerializer(read_only=True)


    class Meta:
        model = PQR
        fields = ['id', 'soporte', 'tipo', 'info']
