Заменены иконки в общей информации,, добавлена шапка с основанием и координатором
This commit is contained in:
1 parent
c6d43b0cc3
commit
7b0cb7ed8c
5 files changed
+89
-37
No files matched your search
@@ -5,13 +5,6 @@ from datetime import date
|
||||
from .models import *
|
||||
from .serializers import *
|
||||
from rest_framework.response import Response
|
||||
# Create your views here.
|
||||
|
||||
class GetFactSize(ListAPIView):
|
||||
def get(self, request):
|
||||
fact_size = DictEmployee.objects.filter(Q(deleteddate__isnull= True)).count()
|
||||
print(fact_size)
|
||||
return Response({'fact_size':fact_size})
|
||||
|
||||
|
||||
class GetStateSize(ListAPIView):
|
||||
@@ -20,6 +13,12 @@ class GetStateSize(ListAPIView):
|
||||
return Response(StateSizeSerializer(state_size).data)
|
||||
|
||||
|
||||
class GetFactSize(ListAPIView):
|
||||
def get(self, request):
|
||||
fact_size = FactSize.objects.latest('date_created')
|
||||
return Response(FactSizeSerializer(fact_size).data)
|
||||
|
||||
|
||||
class GetInspectionDirections(ListAPIView):
|
||||
queryset = InspectionDirections.objects.all()
|
||||
serializer_class = InspectionDirectionsSerializer
|
||||
|
||||
Reference in new issue
Block a user