from rest_framework import serializers
from .models import FacebookPost
from Medias.serializers import SocialMediaSerializer


class FacebookPostSerializer(serializers.ModelSerializer):
    media = SocialMediaSerializer(many=False, read_only=True)


    class Meta:
        model = FacebookPost
        fields = '__all__'


class FacebookPostSerializerLightSerializer(serializers.ModelSerializer):


    class Meta:
        model = FacebookPost
        fields = '__all__'

36e7ca6c014c04d72f29bca3bc4c741c62ada2f7
<mask token>

<mask token>


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


    class Meta:
        model = FacebookPost
        fields = '__all__'


class FacebookPostSerializerLightSerializer(serializers.ModelSerializer):


    class Meta:
        model = FacebookPost
        fields = '__all__'

<mask token>


class FacebookPostSerializer(serializers.ModelSerializer):
    media = SocialMediaSerializer(many=False, read_only=True)


    class Meta:
        model = FacebookPost
        fields = '__all__'


class FacebookPostSerializerLightSerializer(serializers.ModelSerializer):


    class Meta:
        model = FacebookPost
        fields = '__all__'

from rest_framework import serializers
from .models import FacebookPost
from Medias.serializers import SocialMediaSerializer


class FacebookPostSerializer(serializers.ModelSerializer):
    media = SocialMediaSerializer(many=False, read_only=True)


    class Meta:
        model = FacebookPost
        fields = '__all__'


class FacebookPostSerializerLightSerializer(serializers.ModelSerializer):


    class Meta:
        model = FacebookPost
        fields = '__all__'
