mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 04:07:39 +03:00
Merge pull request #101 from yandy/pub
change the key name "field-errors" to "field_errors".
This commit is contained in:
commit
da42c4fe87
|
@ -173,7 +173,7 @@ class FormResource(Resource):
|
|||
field_errors[key] = [u'This field does not exist.']
|
||||
|
||||
if field_errors:
|
||||
detail[u'field-errors'] = field_errors
|
||||
detail[u'field_errors'] = field_errors
|
||||
|
||||
# Return HTTP 400 response (BAD REQUEST)
|
||||
raise ErrorResponse(400, detail)
|
||||
|
|
Loading…
Reference in New Issue
Block a user