You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
687 B
23 lines
687 B
from django.db.models import Value
|
|
from rest_framework.generics import RetrieveAPIView, CreateAPIView
|
|
from rest_framework.permissions import IsAuthenticated
|
|
|
|
from drf_yasg.utils import swagger_auto_schema
|
|
from drf_yasg import openapi
|
|
|
|
from apps.quiz.serializers import QuizParticipantSerializer
|
|
from apps.quiz.doc import *
|
|
|
|
|
|
|
|
class QuizParticipantCreateAPIView(CreateAPIView):
|
|
serializer_class = QuizParticipantSerializer
|
|
permission_classes = [IsAuthenticated]
|
|
|
|
|
|
@swagger_auto_schema(
|
|
operation_description=doc_quiz_submit(),
|
|
tags=["Imam-Javad - Quiz"],
|
|
)
|
|
def post(self, request, *args, **kwargs):
|
|
return super().post(request, *args, **kwargs)
|