|
|
|
@ -24,12 +24,13 @@ from service.permissions import UserPermission
|
|
|
|
from service.service import PointService
|
|
|
|
from service.service import PointService
|
|
|
|
from service.tasks import raschet
|
|
|
|
from service.tasks import raschet
|
|
|
|
from service.utils import load_data
|
|
|
|
from service.utils import load_data
|
|
|
|
|
|
|
|
from rest_framework.permissions import AllowAny
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class AOViewSet(ReadOnlyModelViewSet):
|
|
|
|
class AOViewSet(ReadOnlyModelViewSet):
|
|
|
|
serializer_class = serializers.AOSerializer
|
|
|
|
serializer_class = serializers.AOSerializer
|
|
|
|
queryset = models.AO.objects
|
|
|
|
queryset = models.AO.objects
|
|
|
|
permission_classes = [UserPermission]
|
|
|
|
permission_classes = [AllowAny]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class PlacementPointViewSet(ReadOnlyModelViewSet):
|
|
|
|
class PlacementPointViewSet(ReadOnlyModelViewSet):
|
|
|
|
|