diff --git a/rest_framework/decorators.py b/rest_framework/decorators.py index 7c9efc4d1..cdbd59e99 100644 --- a/rest_framework/decorators.py +++ b/rest_framework/decorators.py @@ -78,7 +78,7 @@ def api_view(http_method_names=None, exclude_from_schema=False): if exclude_from_schema: warnings.warn( - "The `exclude_from_schema` argument to `api_view` is deprecated. " + "The `exclude_from_schema` argument to `api_view` is pending deprecation. " "Use the `schema` decorator instead, passing `None`.", PendingDeprecationWarning ) diff --git a/rest_framework/schemas/generators.py b/rest_framework/schemas/generators.py index f24fdaafd..4d63ad5e9 100644 --- a/rest_framework/schemas/generators.py +++ b/rest_framework/schemas/generators.py @@ -150,7 +150,7 @@ class EndpointEnumerator(object): return False # Ignore anything except REST framework views. if hasattr(callback.cls, 'exclude_from_schema'): - fmt = ("{}. The `APIView.exclude_from_schema` is deprecated. " + fmt = ("{}. The `APIView.exclude_from_schema` is pending deprecation. " "Set `schema = None` instead") msg = fmt.format(callback.cls.__name__) warnings.warn(msg, PendingDeprecationWarning)