From 4ccf3067b457e6e919efda974fd9bf24913b9b1b Mon Sep 17 00:00:00 2001 From: Miron Sadykov Date: Fri, 2 Feb 2024 15:37:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=92=D1=8B=D0=BA=D0=BB=D1=8E=D1=87=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=B0=D0=B3=D0=B8=D0=BD=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D0=B8=20=D0=B4=D0=BB=D1=8F=20users=20(#50)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/v1/views/users_view.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/api/v1/views/users_view.py b/api/v1/views/users_view.py index 8ae854b..85592eb 100644 --- a/api/v1/views/users_view.py +++ b/api/v1/views/users_view.py @@ -7,7 +7,6 @@ from rest_framework import filters from rest_framework.decorators import action from rest_framework.filters import OrderingFilter -from rest_framework.pagination import LimitOffsetPagination from rest_framework.response import Response from api.v1.filters import CustomFilter @@ -27,7 +26,6 @@ "./?ordering=full_name " "и должности ./?ordering=-position_name" "
  • Поиск по ФИО и должности ./?search=Мирон
  • " - "
  • Ограничение pagination ./?limit=5.
  • " "
  • Фильтр по id команды ./?team=1
  • " "
  • Фильтр по id команды и отсутствию ИПР " "./?team=1&no_ipr=true
  • " @@ -60,7 +58,6 @@ class UserViewSet(UserViewSetFromDjoser): "position__name", ) serializer_class = CustomUserSerializer - pagination_class = LimitOffsetPagination http_method_names = ["get", "head", "options"] ordering_fields = ("full_name", "position_name")