#6705: When using {{ form.errors }} in a template, the output uses field name
instead of using field label.
-------------------------+--------------------------------------------------
   Reporter:  Emilian    |                Owner:  nobody         
     Status:  closed     |            Component:  django.newforms
    Version:  SVN        |           Resolution:  invalid        
   Keywords:  errordict  |                Stage:  Unreviewed     
  Has_patch:  0          |           Needs_docs:  0              
Needs_tests:  0          |   Needs_better_patch:  0              
-------------------------+--------------------------------------------------
Changes (by ubernostrum):

  * status:  new => closed
  * resolution:  => invalid

Comment:

 The newforms docs explain how to customize error output; meanwhile, using
 the field name as the key in the errors dictionary is correct behavior,
 because it ensures consistency; using a verbose name or label is
 problematic because these may well be translated strings, and so will
 change from one page view to the next, wreaking havoc on code which wants
 to predictably access specific field errors.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/6705#comment:2>
Django Code <http://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to