#16986: Model.clean cannot report errors on individual fields
-----------------------------+------------------------------------
Reporter: davidfstr | Owner: nobody
Type: New feature | Status: new
Component: Forms | Version: SVN
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 1
Needs tests: 1 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
-----------------------------+------------------------------------
Changes (by davidfstr):
* cc: davidfstr (added)
Comment:
(Hopefully the CC change will subscribe me to future updates)
Agreed that it would be good to isolate {{{hasattr(..., "message_dict")}}}
logic.
I have a different approach though: make
{{{ValidationError.message_dict}}} a property that self-initializes to
{{{{'__all__': self.messages}}}}. I need to check whether this affects
backward-compatibility though. Then I'll look at updating the patch.
--
Ticket URL: <https://code.djangoproject.com/ticket/16986#comment:2>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.