changing code structure
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
# rest framework
|
||||
from rest_framework import generics
|
||||
from rest_framework.response import Response
|
||||
from rest_framework import permissions
|
||||
|
||||
# core apps
|
||||
from core.apps.evaluation.serializers.auto.AvgCost import AvgCostSerializer
|
||||
from core.services.grpc.auto import get_auto_avg_cost
|
||||
|
||||
|
||||
class AvgCostView(generics.GenericAPIView):
|
||||
class AvgCostAPIView(generics.GenericAPIView):
|
||||
serializer_class = AvgCostSerializer
|
||||
permission_classes = [permissions.IsAuthenticated]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user