Skip to content

Commit

Permalink
Выключение пагинации для users (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
Reagent992 authored Feb 2, 2024
1 parent c4a35b1 commit 4ccf306
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions api/v1/views/users_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -27,7 +26,6 @@
"<code>./?ordering=full_name</code> "
"и должности <code>./?ordering=-position_name</code></li>"
"<li>Поиск по ФИО и должности <code>./?search=Мирон</code></li>"
"<li>Ограничение pagination <code>./?limit=5</code>.</li>"
"<li>Фильтр по id команды <code>./?team=1</code></li>"
"<li>Фильтр по id команды и отсутствию ИПР "
"<code>./?team=1&no_ipr=true</code></li></ul>"
Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit 4ccf306

Please sign in to comment.