Browse Source

NoPagination for filter views.

master
Mohsen Taba 5 months ago
parent
commit
6a76da3461
  1. 7
      apps/hadis/docs.py
  2. 1
      apps/hadis/views/hadis.py
  3. 1
      apps/hadis/views/transmitter.py

7
apps/hadis/docs.py

@ -439,11 +439,6 @@ arguments_filters_swagger = swagger_auto_schema(
description="Successfully retrieved paginated list of hadis for the specified category",
examples={
"application/json": {
"count": 150,
"next": "http://example.com/api/hadis/category/1/?page=2",
"previous": None,
"results": [
{
"statuses": [
{
"text": "Достоверный",
@ -477,8 +472,6 @@ arguments_filters_swagger = swagger_auto_schema(
},
]
}
]
}
}
),
status.HTTP_404_NOT_FOUND: openapi.Response(

1
apps/hadis/views/hadis.py

@ -322,6 +322,7 @@ class HadisFiltersView(ListAPIView):
API view to return filter data for hadis
Returns statuses and categories for filtering
"""
pagination_class = NoPagination
@arguments_filters_swagger
def get(self, request, *args, **kwargs):

1
apps/hadis/views/transmitter.py

@ -136,6 +136,7 @@ class TransmitterFiltersView(ListAPIView):
API view to return filter data for transmitters
Returns generations, madhabs, and reliabilities for filtering
"""
pagination_class = NoPagination
@transmitter_filters_swagger
def get(self, request, *args, **kwargs):

Loading…
Cancel
Save