Skip to content

Commit 1c9ad52

Browse files
Clarify pagination system check (#5524)
* Add `id` to allow silencing. * Expand `hint` to clarify. Ref #5170 Closes #5523
1 parent 916a4a2 commit 1c9ad52

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

rest_framework/checks.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ def pagination_system_check(app_configs, **kwargs):
1212
"You have specified a default PAGE_SIZE pagination rest_framework setting,"
1313
"without specifying also a DEFAULT_PAGINATION_CLASS.",
1414
hint="The default for DEFAULT_PAGINATION_CLASS is None. "
15-
"In previous versions this was PageNumberPagination",
15+
"In previous versions this was PageNumberPagination. "
16+
"If you wish to define PAGE_SIZE globally whilst defining "
17+
"pagination_class on a per-view basis you may silence this check.",
18+
id="rest_framework.W001"
1619
)
1720
)
1821
return errors

0 commit comments

Comments
 (0)