#4471 closed Uncategorized (wontfix)
Newforms errors.as_text probably shouldn't prefix the string with an '*' character
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Design decision needed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Pull Requests: | How to create a pull request | ||
Description ¶
To make
errors.as_text
more generic, it probably shouldn't prefix the returned string with an asterisk. This would give template authors more control over the formatting of error strings.
Change History (6)
by , 18 years ago
Attachment: | remove_stars_from_errors.diff added |
---|
comment:1 by , 18 years ago
Has patch: | set |
---|
comment:2 by , 18 years ago
Triage Stage: | Unreviewed → Design decision needed |
---|
comment:3 by , 17 years ago
comment:4 by , 14 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Would be backwards incompatible at this point. Making this change in your own code is easy enough, as it's possible to use a custom Error class on forms and the method can be subclassed.
comment:5 by , 12 years ago
Easy pickings: | unset |
---|---|
Severity: | → Normal |
Type: | → Uncategorized |
UI/UX: | unset |
How do I make a custom Error class on my form for 'non_field_errors' so that I can use {{ form.non_field_errors.as_text }}
in my template without the silly '*' throwing off the qì (Ch'i) of my site?
I know it's old, but it still (AFAIK) applies. Let's get rid of the asterisk! I think the diff needs to remove the extra space at the beginning too.