#3457: newforms needs error_text for fields
-----------------------+----------------------------------------------------
Reporter: anonymous | Owner: adrian
Status: new | Component: django.newforms
Version: SVN | Keywords:
Stage: Unreviewed | Has_patch: 0
-----------------------+----------------------------------------------------
Right now, the only field type that allows custom error messages is
RegexField. For those of us that cannot display errors next to their
respective field (for whatever reason), having 6 "This field is required."
messages in a row just confuses users.
I propose adding error_text to the base Field definition. Adding a simple
{{{
#!python
self.error_text = error_text or u'This field is required.'
}}}
The only design decision I see that needs to be made is how to handle
fields that have multiple error messages, e.g., the min/max errors on
IntegerField. Perhaps arguments would work there, too: max_error_text,
min_error_text.
--
Ticket URL: <http://code.djangoproject.com/ticket/3457>
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
-~----------~----~----~----~------~----~------~--~---