SOITA/answers/serializers.py
Hubert Jankowski 7c18f0920a WIP
2021-12-12 11:35:35 +01:00

17 lines
295 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"
)