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
e3d7c361
Commit
e3d7c361
authored
Mar 20, 2012
by
Alen Mujezinovic
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't return unknown field errors if allow_unknown_form_fields is True
parent
537fa19b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
djangorestframework/resources.py
+3
-2
No files found.
djangorestframework/resources.py
View file @
e3d7c361
...
...
@@ -169,8 +169,9 @@ class FormResource(Resource):
)
# Add any unknown field errors
for
key
in
unknown_fields
:
field_errors
[
key
]
=
[
u'This field does not exist.'
]
if
not
self
.
allow_unknown_form_fields
:
for
key
in
unknown_fields
:
field_errors
[
key
]
=
[
u'This field does not exist.'
]
if
field_errors
:
detail
[
u'field_errors'
]
=
field_errors
...
...
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