mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
Leave requests.FILES alone, for compat with regular Django requests. Closes #3239.
This commit is contained in:
parent
67ddd54a89
commit
19c1976fcc
|
@ -458,10 +458,8 @@ class Request(object):
|
|||
|
||||
@property
|
||||
def FILES(self):
|
||||
raise NotImplementedError(
|
||||
'`request.FILES` has been deprecated in favor of `request.files` '
|
||||
'since version 3.0, and has been fully removed as of version 3.2.'
|
||||
)
|
||||
# Leave this one alone for backwards compat with Django's request.FILES
|
||||
return self.files
|
||||
|
||||
@property
|
||||
def QUERY_PARAMS(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user