P-9
This commit is contained in:
1 parent
b10128405a
commit
2cb5d8d689
8 files changed
+105
-12
No files matched your search
@@ -20,7 +20,7 @@ class GetFactSize(ListAPIView):
|
||||
|
||||
|
||||
class GetInspectionDirections(ListAPIView):
|
||||
queryset = InspectionDirections.objects.all()
|
||||
queryset = InspectionDirections.objects.filter(department__isnull=True)
|
||||
serializer_class = InspectionDirectionsSerializer
|
||||
# отключает вывод информации о пагинации(count,previous,next, results)
|
||||
paginator = None
|
||||
@@ -28,4 +28,10 @@ class GetInspectionDirections(ListAPIView):
|
||||
class GetStructure(ListAPIView):
|
||||
def get(self, request):
|
||||
queryset = DictEmployee.objects.filter(id_dict_position__order_position__lte = 2, deleted=0).order_by('id_dict_position__order_position','familyname')
|
||||
return Response(StructureSerializer(queryset, many=True).data)
|
||||
return Response(StructureSerializer(queryset, many=True).data)
|
||||
|
||||
|
||||
class GetVacancies(ListAPIView):
|
||||
def get(self, request):
|
||||
queryset = Vacancies.objects.filter(published=True).order_by('department__order_department')
|
||||
return Response(VacanciesSerializer(queryset, many=True).data)
|
||||
Reference in new issue
Block a user