mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 12:30:11 +03:00
s/deprecated/pending deprecation/
This commit is contained in:
parent
a966b8417e
commit
d4a49055db
|
@ -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
|
||||
)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user