#16986: Model.clean cannot report errors on individual fields
-----------------------------+-------------------------------------
     Reporter:  davidfstr    |                    Owner:  davidfstr
         Type:  New feature  |                   Status:  new
    Component:  Forms        |                  Version:  SVN
     Severity:  Normal       |               Resolution:
     Keywords:               |             Triage Stage:  Accepted
    Has patch:  1            |      Needs documentation:  0
  Needs tests:  0            |  Patch needs improvement:  0
Easy pickings:  0            |                    UI/UX:  0
-----------------------------+-------------------------------------

Comment (by anonymous):

 This is what I am able to piece together:
 1. Pre r12402, it was possible to raise a {{{ValidationError}}} with a
 dictionary but not a list of messages.
 2. Post r12402, it was possible to raise a {{{ValidationError}}} with a
 list of messages but not a dictionary. (That is, it was a breaking
 change.)
 3. This patch allows a {{{ValidationError}}} to be raised with either a
 list of messages or a dictionary.

 Based on the wording of r12402, it was originally that case (2) definitely
 work but that case (1) had not been considered seriously. This patch
 allows both cases (1) and (2) to work.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/16986#comment:11>
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to