Opened 18 years ago
Closed 18 years ago
#3334 closed (fixed)
Dynamic Creation of newforms Persists field data
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Forms | Version: | dev |
Severity: | Keywords: | ||
Cc: | deryck@… | Triage Stage: | Accepted |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Attached is a patch to the tests for newforms, showing that when passing in fields to dynamically created forms, the fields are persisting across multiple instances of the form.
The current test fails as attached, returning field1, field2, field3, and field4 on the second print statement, when it should just return field3 and field4.
Attachments (1)
Change History (3)
by , 18 years ago
Attachment: | form_tests.diff added |
---|
comment:1 by , 18 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
A patch to tests/regressiontests/forms/tests.py to test instances of dynamically created forms return the right fields.