from django_core.mixins import BaseViewSetMixin from drf_spectacular.utils import extend_schema from rest_framework.permissions import AllowAny from rest_framework.viewsets import ReadOnlyModelViewSet from core.apps.evaluation.models import MovablePropertyEvaluationModel from core.apps.evaluation.serializers.movable import ( CreateMovablepropertyevaluationSerializer, ListMovablepropertyevaluationSerializer, RetrieveMovablepropertyevaluationSerializer, ) @extend_schema(tags=["MovablePropertyEvaluation"]) class MovablePropertyEvaluationView(BaseViewSetMixin, ReadOnlyModelViewSet): queryset = MovablePropertyEvaluationModel.objects.all() serializer_class = ListMovablepropertyevaluationSerializer permission_classes = [AllowAny] action_permission_classes = {} action_serializer_class = { "list": ListMovablepropertyevaluationSerializer, "retrieve": RetrieveMovablepropertyevaluationSerializer, "create": CreateMovablepropertyevaluationSerializer, }