mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-02-02 20:54:42 +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
|
@property
|
||||||
def FILES(self):
|
def FILES(self):
|
||||||
raise NotImplementedError(
|
# Leave this one alone for backwards compat with Django's request.FILES
|
||||||
'`request.FILES` has been deprecated in favor of `request.files` '
|
return self.files
|
||||||
'since version 3.0, and has been fully removed as of version 3.2.'
|
|
||||||
)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def QUERY_PARAMS(self):
|
def QUERY_PARAMS(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user