#2014: [patch] Error messages of RequiredIfOtherField* validators are not
userfriendly
------------------------------+---------------------------------------------
 Reporter:  Steven Armstrong  |       Owner:  adrian
     Type:  defect            |      Status:  new   
 Priority:  normal            |   Milestone:        
Component:  Admin interface   |     Version:  SVN   
 Severity:  normal            |    Keywords:        
------------------------------+---------------------------------------------
 When working with RequiredIfOtherFieldEquals and
 RequiredIfOtherFieldDoesNotEqual validators the error messages can be
 quite user unfriendly.
 
 Assuming you have a select-box named 'action' where the currently selected
 option has a value of 2 and a label of 'Forward Message to' you get error
 messages like:[[BR]]
 ''This field must be given if action is 2''
 
 That sort of let's the user sit there feeling dumb. 2, where does that 2
 come from and what does it mean ???
 
 With the attached patch applied you can have error messages like:[[BR]]
 ''This field must be given if action is Forward Message to''
 
 The label is passed as a third, optional, argument to the validators
 constructor.
 
 e.g.:[[BR]]
 RequiredIfOtherFieldEquals('action', 2)
 
 becomes:[[BR]]
 RequiredIfOtherFieldEquals('action', 2, 'Forward Message to')
 
 This is a backwards compatible change.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2014>
Django <http://code.djangoproject.org/>
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to