Opened 10 years ago
Closed 10 years ago
#24147 closed Bug (fixed)
Model managers in migration leak referenced model across project states
Reported by: | Markus Holtermann | Owned by: | Markus Holtermann |
---|---|---|---|
Component: | Migrations | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Pull Requests: | |||
Description ¶
When including model managers in migration the manager instances are shared across project states. Since a manager itself has a reference to a model the referenced model always refers to the latest rendered state which likely does not refer to the correct model.
Change History (4)
comment:1 by , 10 years ago
Has patch: | set |
---|
comment:2 by , 10 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:3 by , 10 years ago
Component: | Uncategorized → Migrations |
---|---|
Triage Stage: | Unreviewed → Ready for checkin |
Version: | 1.8alpha1 → master |
comment:4 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
https://github.com/django/django/pull/3913