From 5b77a7718a4a59c788e21c893685654d949829cd Mon Sep 17 00:00:00 2001 From: Carlton Gibson Date: Mon, 23 Oct 2017 12:15:28 +0200 Subject: [PATCH] Clarify pagination system check * Add `id` to allow silencing. * Expand `hint` to clarify. Ref #5170 Closes #5523 --- rest_framework/checks.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rest_framework/checks.py b/rest_framework/checks.py index af6634d1e..c1e626018 100644 --- a/rest_framework/checks.py +++ b/rest_framework/checks.py @@ -12,7 +12,10 @@ def pagination_system_check(app_configs, **kwargs): "You have specified a default PAGE_SIZE pagination rest_framework setting," "without specifying also a DEFAULT_PAGINATION_CLASS.", hint="The default for DEFAULT_PAGINATION_CLASS is None. " - "In previous versions this was PageNumberPagination", + "In previous versions this was PageNumberPagination. " + "If you wish to define PAGE_SIZE globally whilst defining " + "pagination_class on a per-view basis you may silence this check.", + id="rest_framework.W001" ) ) return errors