Permalink
Browse files

give usefull informations when form validation fails + return 400 sta…

…tus code
  • Loading branch information...
1 parent 236bb0b commit c99e547113ae7a6185306d5ebc53f1ef97a9f239 @Psycojoker Psycojoker committed Sep 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 djangbone/views.py
View
@@ -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 c99e547

Please sign in to comment.