Skip to content

Commit

Permalink
Merge pull request #8 from Psycojoker/patch-1
Browse files Browse the repository at this point in the history
give usefull informations when form validation fails + return 400 status code
  • Loading branch information
af committed Sep 17, 2012
2 parents 236bb0b + c99e547 commit 42dc407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion djangbone/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,4 @@ def validation_error_response(self, form_errors):
can override this method is you want to use a specific error response format.
By default, the output is a simple text response.
"""
return HttpResponse('ERROR: validation failed')
return HttpResponse('<p>ERROR: validation failed</p>' + str(form_errors), status=400)

0 comments on commit 42dc407

Please sign in to comment.