Opened 19 years ago
Closed 19 years ago
#3139 closed defect (fixed)
[patch] BoundField._errors() returns an empty ErrorList() when using Form's prefix option
| Reported by: | jkocherhans | Owned by: | Adrian Holovaty |
|---|---|---|---|
| Component: | Forms | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | jkocherhans@… | Triage Stage: | Unreviewed |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
_errors() looks for self.form.errors[self.name], which is fine until you use a prefix. In that case, self.name is the prefixed version which won't and shouldn't be found in form.errors
Attachments (1)
Change History (3)
by , 19 years ago
| Attachment: | prefix-errors.diff added |
|---|
comment:1 by , 19 years ago
| Cc: | added |
|---|---|
| Component: | Admin interface → django.newforms |
comment:2 by , 19 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
The fix could probably be simpler, but I think this is more clear.