From d4a49055dbe57edea46ac78232eb52f93663a5ef Mon Sep 17 00:00:00 2001 From: Carlton Gibson Date: Thu, 14 Sep 2017 16:59:59 +0200 Subject: [PATCH] s/deprecated/pending deprecation/ --- rest_framework/decorators.py | 2 +- rest_framework/schemas/generators.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)