<filename>backend/apps/question/views/option.py
from rest_framework.viewsets import ModelViewSet

from question.models import TblQuestionOption as Model
from question.serializers import OptionSerializer as Serializer


class OptionViewset(ModelViewSet):
    queryset = Model.objects.all().order_by('-id')
    serializer_class = Serializer
<filename>backend/apps/question/views/option.py
from rest_framework.viewsets import ModelViewSet

from question.models import TblQuestionOption as Model
from question.serializers import OptionSerializer as Serializer


class OptionViewset(ModelViewSet):
    queryset = Model.objects.all().order_by('-id')
    serializer_class = Serializer