Opened 18 years ago
Closed 18 years ago
#6790 closed (wontfix)
Changes to form.errors adressing #6705 and #6138
| Reported by: | oyvind | Owned by: | nobody |
|---|---|---|---|
| Component: | Forms | Version: | dev |
| Severity: | Keywords: | override error_list error_dict show labels errors | |
| Cc: | oyvind.saltvik@… | Triage Stage: | Design decision needed |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Make it possible to override error_dict.
Makes sure all parts uses the overridden error_list and error_class.
{{ form.errors }} now shows label instead of key if it exists in as_ul and as_text
Attachments (4)
Change History (10)
by , 18 years ago
| Attachment: | error_dict_list_fixes_and_overrides.diff added |
|---|
comment:1 by , 18 years ago
by , 18 years ago
| Attachment: | error_dict_list_fixes_and_overrides_2.diff added |
|---|
no need for force_unicode and escape
comment:2 by , 18 years ago
| Needs tests: | set |
|---|---|
| Triage Stage: | Unreviewed → Accepted |
Note, this is backwards incompatible (error_class attribute becomes error_list)
by , 18 years ago
| Attachment: | error_dict_list_fixes_and_overrides_3.diff added |
|---|
Removed some code duplication one form.errors.get
by , 18 years ago
| Attachment: | error_dict_list_fixes_and_overrides_4.diff added |
|---|
Fix one thing at the time, just overrides and no labels in errordict
comment:4 by , 18 years ago
Labels in ErrorDict should be solved better, perhaps a name-to-label dictionary passed to ErrorDict.
Should make this a new ticket.
comment:5 by , 18 years ago
| Keywords: | easy-pickings removed |
|---|---|
| Needs tests: | unset |
| Triage Stage: | Accepted → Design decision needed |
Note that this is still backwards incompatible (maybe in a more confusing way), error_class was previously expected to be an ErrorList, now it should be an ErrorDict.
The tests are good enough now, since we aren't introducing new functionality (just modifying it).
Thinking more about this, tt should probably go back for a design decision, so I'll push it back there now.
comment:6 by , 18 years ago
| Resolution: | → wontfix |
|---|---|
| Status: | new → closed |
removed in favor or rendering errors via filters
Tickets #6705 and #6138
Link to discussion for #6705