<filename>poem/api/serializers.py<gh_stars>0
from ..models import Poem
from rest_framework import serializers
from django.core.files.base import ContentFile

class PoemSerializers(serializers.ModelSerializer):
    class Meta():
        model = Poem
        fields = ('id', 'phrase', 'length', 'result')

<filename>poem/api/serializers.py<gh_stars>0
from ..models import Poem
from rest_framework import serializers
from django.core.files.base import ContentFile

class PoemSerializers(serializers.ModelSerializer):
    class Meta():
        model = Poem
        fields = ('id', 'phrase', 'length', 'result')
