This commit is contained in:
Daniel Hahler 2018-10-08 13:36:25 +00:00 committed by GitHub
commit 515ee92e2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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