#25777: Django admin/views don't expect forms to fail after validation
-------------------------------+--------------------
Reporter: vzima | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
Django assumes that all input data in forms can be validated by
`Form.is_valid()` which is not true. Database contraints, e.g. unique, can
fail even though they are checked. An application may require
communication with other servers while processing data which can lead to
errors.
Both Django admin and generic form views should expect that `save` may
fail despite the validation and provide a way to handle those errors
easily, e.g. expect `ValidationError` can be raised by `Model.save` and
`ModelForm.save` etc.
--
Ticket URL: <https://code.djangoproject.com/ticket/25777>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/048.3b7b5cb558328c607465829fd9481057%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.