Skip to content

Commit

Permalink
Remove long deprecated code from request wrapper (#9441)
Browse files Browse the repository at this point in the history
  • Loading branch information
sevdog committed Jun 18, 2024
1 parent 1e9b5c1 commit e13688f
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions rest_framework/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,13 +422,6 @@ def __getattr__(self, attr):
except AttributeError:
return self.__getattribute__(attr)

@property
def DATA(self):
raise NotImplementedError(
'`request.DATA` has been deprecated in favor of `request.data` '
'since version 3.0, and has been fully removed as of version 3.2.'
)

@property
def POST(self):
# Ensure that request.POST uses our request parsing.
Expand All @@ -447,13 +440,6 @@ def FILES(self):
self._load_data_and_files()
return self._files

@property
def QUERY_PARAMS(self):
raise NotImplementedError(
'`request.QUERY_PARAMS` has been deprecated in favor of `request.query_params` '
'since version 3.0, and has been fully removed as of version 3.2.'
)

def force_plaintext_errors(self, value):
# Hack to allow our exception handler to force choice of
# plaintext or html error responses.
Expand Down

0 comments on commit e13688f

Please sign in to comment.