Merge pull request #101 from yandy/pub

change the key name "field-errors" to "field_errors".
This commit is contained in:
Tom Christie 2011-12-30 07:31:46 -08:00
commit da42c4fe87

View File

@ -173,7 +173,7 @@ class FormResource(Resource):
field_errors[key] = [u'This field does not exist.'] field_errors[key] = [u'This field does not exist.']
if field_errors: if field_errors:
detail[u'field-errors'] = field_errors detail[u'field_errors'] = field_errors
# Return HTTP 400 response (BAD REQUEST) # Return HTTP 400 response (BAD REQUEST)
raise ErrorResponse(400, detail) raise ErrorResponse(400, detail)