2021-12-05 13:50:34 +01:00
|
|
|
from rest_framework import serializers
|
|
|
|
|
|
|
|
from answers.models import Answer
|
|
|
|
|
|
|
|
|
|
|
|
class AnswerSerializer(serializers.ModelSerializer):
|
2021-12-12 11:35:35 +01:00
|
|
|
|
|
|
|
|
2021-12-05 13:50:34 +01:00
|
|
|
class Meta:
|
|
|
|
model = Answer
|
|
|
|
fields = (
|
|
|
|
"id",
|
|
|
|
"description",
|
|
|
|
"is_correct",
|
2021-12-12 11:35:35 +01:00
|
|
|
# "question"
|
2021-12-05 13:50:34 +01:00
|
|
|
)
|