Skip to content

Commit e13688f

Browse files
authored
Remove long deprecated code from request wrapper (encode#9441)
1 parent 1e9b5c1 commit e13688f

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

rest_framework/request.py

-14
Original file line numberDiff line numberDiff line change
@@ -422,13 +422,6 @@ def __getattr__(self, attr):
422422
except AttributeError:
423423
return self.__getattribute__(attr)
424424

425-
@property
426-
def DATA(self):
427-
raise NotImplementedError(
428-
'`request.DATA` has been deprecated in favor of `request.data` '
429-
'since version 3.0, and has been fully removed as of version 3.2.'
430-
)
431-
432425
@property
433426
def POST(self):
434427
# Ensure that request.POST uses our request parsing.
@@ -447,13 +440,6 @@ def FILES(self):
447440
self._load_data_and_files()
448441
return self._files
449442

450-
@property
451-
def QUERY_PARAMS(self):
452-
raise NotImplementedError(
453-
'`request.QUERY_PARAMS` has been deprecated in favor of `request.query_params` '
454-
'since version 3.0, and has been fully removed as of version 3.2.'
455-
)
456-
457443
def force_plaintext_errors(self, value):
458444
# Hack to allow our exception handler to force choice of
459445
# plaintext or html error responses.

0 commit comments

Comments
 (0)