SOITA/answers/serializers.py
Hubert Jankowski 539c4690cb changers
2021-12-05 13:50:34 +01:00

15 lines
291 B
Python

from rest_framework import serializers
from answers.models import Answer
class AnswerSerializer(serializers.ModelSerializer):
class Meta:
model = Answer
fields = (
"id",
"description",
"is_correct",
"question"
)