Opened 19 years ago
Closed 18 years ago
#4167 closed (fixed)
[0.91-bugfixes][patch] FormFields have list-mutability issues with validator_list argument
| Reported by: | Owned by: | James Bennett | |
|---|---|---|---|
| Component: | Core (Other) | Version: | 0.91 |
| Severity: | Keywords: | ||
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
In 0.91-bugfixes, FormFields have list-mutability issues with the validator_list argument in their __init__ methods; since validator_list has a default of [], that very same list is mutated and re-used in future calls with a default value for validator_list. By setting the default value to None and replacing None with [] in the method body, we avoid this issue.
Attachments (1)
Change History (3)
by , 19 years ago
| Attachment: | django-0.91-formfield-list-mutability-fix.patch added |
|---|
comment:1 by , 19 years ago
| Owner: | changed from to |
|---|
Note:
See TracTickets
for help on using tickets.
FormField list-mutability fix for 0.91-bugfixes