SOITA/answers/views.py

10 lines
247 B
Python
Raw Normal View History

2021-12-05 13:50:34 +01:00
from rest_framework import viewsets
from answers.models import Answer
from answers.serializers import AnswerSerializer
class AnswerModelViewSet(viewsets.ModelViewSet):
serializer_class = AnswerSerializer
queryset = Answer.objects.all()