Skip to content

Commit

Permalink
Leave requests.FILES alone, for compat with regular Django requests. C…
Browse files Browse the repository at this point in the history
…loses #3239.
  • Loading branch information
tomchristie committed Aug 7, 2015
1 parent 67ddd54 commit 19c1976
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rest_framework/request.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,10 +458,8 @@ def DATA(self):

@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):
Expand Down

0 comments on commit 19c1976

Please sign in to comment.