jazzband / django-formtools

A set of high-level abstractions for Django forms
https://django-formtools.readthedocs.io
BSD 3-Clause "New" or "Revised" License
801 stars 135 forks source link

Replace ValidationError with SuspiciousOperation in views #119

Closed moggers87 closed 6 years ago

moggers87 commented 6 years ago

Nothing catches the ValidationError, causing a 500 error to be given. SuspiciousOperation is caught by Django and a HTTP 400 response is returned to the client.

Fixes #118