#28043 closed Bug (fixed)
Cloning a ModelState fails to deepcopy all options
Reported by: | Ian Foote | Owned by: | Ian Foote |
---|---|---|---|
Component: | Migrations | Version: | 1.11 |
Severity: | Release blocker | Keywords: | ModelState clone indexes |
Cc: | Markus Holtermann | Triage Stage: | Accepted |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In ModelState.clone, we copy the self.options
dictionary, but this fails to copy any mutable values, specifically indexes
. Since AddIndex.state_forwards
mutates indexes
, this leads to an invalid state.
Change History (5)
comment:1 by , 8 years ago
Triage Stage: | Unreviewed → Accepted |
---|---|
Version: | master → 1.11 |
comment:2 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
PR