Skip to content

Commit 9956919

Browse files
committed
If pagination class, include the schema generation
#5144
1 parent 6831472 commit 9956919

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/schemas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ def get_pagination_fields(self, path, method, view):
606606
return []
607607

608608
pagination = getattr(view, 'pagination_class', None)
609-
if not pagination or not getattr(pagination, 'page_size', None):
609+
if not pagination:
610610
return []
611611

612612
paginator = view.pagination_class()

0 commit comments

Comments
 (0)