s/deprecated/pending deprecation/

This commit is contained in:
Carlton Gibson 2017-09-14 16:59:59 +02:00
parent a966b8417e
commit d4a49055db
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ def api_view(http_method_names=None, exclude_from_schema=False):
if exclude_from_schema: if exclude_from_schema:
warnings.warn( 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`.", "Use the `schema` decorator instead, passing `None`.",
PendingDeprecationWarning PendingDeprecationWarning
) )

View File

@ -150,7 +150,7 @@ class EndpointEnumerator(object):
return False # Ignore anything except REST framework views. return False # Ignore anything except REST framework views.
if hasattr(callback.cls, 'exclude_from_schema'): 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") "Set `schema = None` instead")
msg = fmt.format(callback.cls.__name__) msg = fmt.format(callback.cls.__name__)
warnings.warn(msg, PendingDeprecationWarning) warnings.warn(msg, PendingDeprecationWarning)