aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/request.py
diff options
context:
space:
mode:
Diffstat (limited to 'rest_framework/request.py')
-rw-r--r--rest_framework/request.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/rest_framework/request.py b/rest_framework/request.py
index bf6ff670..86fb1ef1 100644
--- a/rest_framework/request.py
+++ b/rest_framework/request.py
@@ -219,8 +219,8 @@ class Request(object):
Synonym for `.query_params`, for backwards compatibility.
"""
warnings.warn(
- "`request.QUERY_PARAMS` is pending deprecation. Use `request.query_params` instead.",
- PendingDeprecationWarning,
+ "`request.QUERY_PARAMS` is deprecated. Use `request.query_params` instead.",
+ DeprecationWarning,
stacklevel=1
)
return self._request.GET
@@ -240,8 +240,8 @@ class Request(object):
arbitrary parsers, and also works on methods other than POST (eg PUT).
"""
warnings.warn(
- "`request.DATA` is pending deprecation. Use `request.data` instead.",
- PendingDeprecationWarning,
+ "`request.DATA` is deprecated. Use `request.data` instead.",
+ DeprecationWarning,
stacklevel=1
)
if not _hasattr(self, '_data'):
@@ -257,8 +257,8 @@ class Request(object):
arbitrary parsers, and also works on methods other than POST (eg PUT).
"""
warnings.warn(
- "`request.FILES` is pending deprecation. Use `request.data` instead.",
- PendingDeprecationWarning,
+ "`request.FILES` is deprecated. Use `request.data` instead.",
+ DeprecationWarning,
stacklevel=1
)
if not _hasattr(self, '_files'):