Opened 9 years ago

Closed 9 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

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:2 by Markus Holtermann, 9 years ago

Owner: changed from Markus to Markus Holtermann
Status: newassigned

comment:3 by Tim Graham, 9 years ago

Component: UncategorizedMigrations
Triage Stage: UnreviewedReady for checkin
Version: 1.8alpha1master

comment:4 by Markus Holtermann <info@…>, 9 years ago

Resolution: fixed
Status: assignedclosed

In 88786afbffc5c095f6491e080afea394f63bb44a:

Fixed #24147 -- Prevented managers leaking model during migrations

Thanks Tim Graham for the review.

Note: See TracTickets for help on using tickets.
Back to Top