Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
django-rest-framework
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
django-rest-framework
Commits
d053cc89
Commit
d053cc89
authored
Mar 08, 2011
by
spiq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
corrected a small bug
parent
2169c85d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
djangorestframework/parsers.py
+2
-2
No files found.
djangorestframework/parsers.py
View file @
d053cc89
...
@@ -128,7 +128,7 @@ class FormParser(BaseParser, DataFlatener):
...
@@ -128,7 +128,7 @@ class FormParser(BaseParser, DataFlatener):
self
.
remove_empty_val
(
data
[
key
])
self
.
remove_empty_val
(
data
[
key
])
# Strip any parameters that we are treating as reserved
# Strip any parameters that we are treating as reserved
for
key
in
data
:
for
key
in
data
.
keys
()
:
if
key
in
self
.
resource
.
RESERVED_FORM_PARAMS
:
if
key
in
self
.
resource
.
RESERVED_FORM_PARAMS
:
data
.
pop
(
key
)
data
.
pop
(
key
)
return
data
return
data
...
@@ -165,7 +165,7 @@ class MultipartParser(BaseParser, DataFlatener):
...
@@ -165,7 +165,7 @@ class MultipartParser(BaseParser, DataFlatener):
data
.
update
(
files
)
data
.
update
(
files
)
# Strip any parameters that we are treating as reserved
# Strip any parameters that we are treating as reserved
for
key
in
data
:
for
key
in
data
.
keys
()
:
if
key
in
self
.
resource
.
RESERVED_FORM_PARAMS
:
if
key
in
self
.
resource
.
RESERVED_FORM_PARAMS
:
data
.
pop
(
key
)
data
.
pop
(
key
)
return
data
return
data
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment