Opened 6 years ago

Closed 6 years ago

#30339 closed Bug (fixed)

Model.delete(keep_parents=True) does not preserve all parent reverse relationships

Reported by: Stephen Brown Owned by: Stephen Brown
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords: models deletion
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Stephen Brown)

There was a partial fix for this in #27407, but it doesn't cater for relationships toward parents of parents, and so on.

Change History (7)

comment:1 by Stephen Brown, 6 years ago

Type: UncategorizedBug

comment:2 by Stephen Brown, 6 years ago

Version: 2.2master
Version 0, edited 6 years ago by Stephen Brown (next)

comment:3 by Stephen Brown, 6 years ago

Description: modified (diff)

comment:4 by Tobias Kunze, 6 years ago

Triage Stage: UnreviewedAccepted

comment:5 by Stephen Brown, 6 years ago

Has patch: set
Last edited 6 years ago by Mariusz Felisiak (previous) (diff)

comment:6 by Tobias Kunze, 6 years ago

Owner: changed from nobody to Stephen Brown
Status: newassigned

comment:7 by Mariusz Felisiak <felisiak.mariusz@…>, 6 years ago

Resolution: fixed
Status: assignedclosed

In 86a3ad35:

Fixed #30339 -- Made Model.delete(keep_parents=True) preserves nested parent reverse relationships.

Thanks Simon Charette for the review.

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