mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-01 11:00:13 +03:00
Merge ff916f02bc
into 6522d4ae20
This commit is contained in:
commit
515ee92e2c
|
@ -81,7 +81,7 @@ def api_view(http_method_names=None, exclude_from_schema=False):
|
|||
warnings.warn(
|
||||
"The `exclude_from_schema` argument to `api_view` is deprecated. "
|
||||
"Use the `schema` decorator instead, passing `None`.",
|
||||
DeprecationWarning
|
||||
DeprecationWarning, stacklevel=2
|
||||
)
|
||||
WrappedAPIView.exclude_from_schema = exclude_from_schema
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user