#21339: Form error message "required" instead of "invalid"
-------------------------------------+-------------------------------------
     Reporter:  duduklein            |                    Owner:  nobody
         Type:                       |                   Status:  new
  Cleanup/optimization               |                  Version:
    Component:  Forms                |  1.6-beta-1
     Severity:  Release blocker      |               Resolution:
     Keywords:  form error_message   |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by claudep):

 * severity:  Normal => Release blocker
 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0
 * type:  Bug => Cleanup/optimization
 * stage:  Unreviewed => Accepted


Comment:

 Ticket at the origin of the change is #17051, commit is [2f121dfe635b3f].

 The rationale is that the error message is not primarily set by the form
 field, but by the validator(s) attached to the field.
 In Django 1.6, the test above should be:
 {{{
 from django.core.validators import EmailValidator
 self.assertEqual(form["email"].errors,
 [force_text(EmailValidator.message)])
 }}}

 Accepted on the base that a note might be added in the ''Backwards
 incompatible changes in 1.6'' section of the release notes.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/21339#comment:1>
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/067.b850e9d3c61252ed9a3db71ee8516ca9%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to