#23: Add support for ValidationWarning
-----------------------------+------------------------------------
Reporter: adrian | Owner: jgeskens
Type: New feature | Status: assigned
Component: Forms | Version:
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 1
-----------------------------+------------------------------------
Changes (by loic84):
* cc: loic@… (added)
Comment:
I'm actually pretty worried about this ticket.
I've been making a lot of changes to the form error reporting (#20199,
#16986, #20867, [https://code.djangoproject.com/ticket/17413#comment:8
#17413]) so that errors could be overridden and so they retain meaning
(metadata like error code or error params) until the very last minute
(rendering). All the patches in this ticket suffer from the same problem
as the old error reporting, we just accumulate a blob of meaningless text
(for the system) that we can only display, therefore I see them as another
step in the wrong direction.
Then comes the question, why just warnings? What about informational
messages or success messages for each field? Lot of modern websites that
have forms operated by AJAX will give this kind of feedback. We have very
good validation machinery; it wouldn't be difficult to integrate these.
We almost have form.errors.as_json() with all the metadata with #17413,
I’d love to have a more generic form.validation.as_json().
--
Ticket URL: <https://code.djangoproject.com/ticket/23#comment:33>
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/064.3daf40807895a306bbd9ebd3ea94d947%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.