<filename>src/api/serializers.py
from rest_framework import serializers 
from question.models import Question 

class QuestionSerializer(serializers.ModelSerializer):
    class Meta:
        model=Question
        fields=("title","body","publish","update","author","score")
<filename>src/api/serializers.py
from rest_framework import serializers 
from question.models import Question 

class QuestionSerializer(serializers.ModelSerializer):
    class Meta:
        model=Question
        fields=("title","body","publish","update","author","score")