|
|
|
@ -57,10 +57,13 @@ class CourseCategoryAPIView(ListAPIView): |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
from utils.pagination import StandardResultsSetPagination |
|
|
|
|
|
|
|
class CourseListAPIView(ListAPIView): |
|
|
|
serializer_class = CourseListSerializer |
|
|
|
filter_backends = [SearchFilter] |
|
|
|
search_fields = ['title', 'category__name', 'professor__fullname'] |
|
|
|
pagination_class = StandardResultsSetPagination |
|
|
|
|
|
|
|
@swagger_auto_schema( |
|
|
|
tags=['Imam-Javad - Course'], |
|
|
|
|