from .models import Flashcard
from .models import Collection
from rest_framework import serializers


class FlashcardSerializer(serializers.ModelSerializer):
    class Meta:
        model = Flashcard
        fields = [
            'id', 'collection', 'card_question', 'card_answer',
        ]


class CollectionSerializer(serializers.ModelSerializer):
    class Meta:
        model = Collection
        fields = [
            'id', 'collection_name',
        ]
01cb0a3e7f4c3fa775b6782d80497a90b8808990
<mask token>

<mask token>


class CollectionSerializer(serializers.ModelSerializer):


    class Meta:
        model = Collection
        fields = ['id', 'collection_name']

<mask token>


class FlashcardSerializer(serializers.ModelSerializer):


    class Meta:
        model = Flashcard
        fields = ['id', 'collection', 'card_question', 'card_answer']


class CollectionSerializer(serializers.ModelSerializer):


    class Meta:
        model = Collection
        fields = ['id', 'collection_name']

from .models import Flashcard
from .models import Collection
from rest_framework import serializers


class FlashcardSerializer(serializers.ModelSerializer):


    class Meta:
        model = Flashcard
        fields = ['id', 'collection', 'card_question', 'card_answer']


class CollectionSerializer(serializers.ModelSerializer):


    class Meta:
        model = Collection
        fields = ['id', 'collection_name']

from .models import Flashcard
from .models import Collection
from rest_framework import serializers


class FlashcardSerializer(serializers.ModelSerializer):
    class Meta:
        model = Flashcard
        fields = [
            'id', 'collection', 'card_question', 'card_answer',
        ]


class CollectionSerializer(serializers.ModelSerializer):
    class Meta:
        model = Collection
        fields = [
            'id', 'collection_name',
        ]