Skip to content

Commit 871ce34

Browse files
authored
Merge pull request #5161 from matteius/master
If pagination class, include the schema generation
2 parents 6831472 + 9956919 commit 871ce34

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)