|
|
|
@ -203,6 +203,7 @@ class BookReferenceV2ListView(generics.ListAPIView): |
|
|
|
|
|
|
|
from rest_framework.generics import ListAPIView, RetrieveAPIView |
|
|
|
from rest_framework.permissions import AllowAny |
|
|
|
from rest_framework.filters import SearchFilter |
|
|
|
from utils.pagination import StandardResultsSetPagination |
|
|
|
from apps.hadis.models.reference import BookAuthor, BookReference |
|
|
|
from apps.hadis.serializers.reference_v2 import ( |
|
|
|
@ -220,6 +221,8 @@ class BookAuthorListView(ListAPIView): |
|
|
|
serializer_class = BookAuthorListSerializer |
|
|
|
pagination_class = StandardResultsSetPagination |
|
|
|
permission_classes = [AllowAny] |
|
|
|
filter_backends = [SearchFilter] |
|
|
|
search_fields = ['name', 'known_as', 'scholarity', 'tabaqa', 'rutba', 'features'] |
|
|
|
|
|
|
|
@swagger_auto_schema( |
|
|
|
operation_summary="List Book Authors", |
|
|
|
|