Commit da42c4fe by Tom Christie

Merge pull request #101 from yandy/pub

change the key name "field-errors" to "field_errors".
parents ff9cb862 c7b9100f
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment