SOITA/questions/views.py

10 lines
261 B
Python
Raw Normal View History

2021-12-05 13:50:34 +01:00
from rest_framework import viewsets
from questions.models import Question
from questions.serializers import QuestionSerializer
class QuestionModelViewSet(viewsets.ModelViewSet):
queryset = Question.objects.all()
serializer_class = QuestionSerializer