Opened 10 years ago

Closed 10 years ago

#2264 closed defect (fixed)

docs should mention that delete() cascades

Reported by: mir@… Owned by: Jacob
Component: Documentation Version:
Severity: normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

some_model.delete() cascades over ForeignKey constraints. While this is certainly useful, it should be documented in the DB API. At least for me, it came as a surprise.

Attachments (1)

2264.diff (843 bytes) - added by James Bennett 10 years ago.
Patch documenting the cascading delete

Download all attachments as: .zip

Change History (5)

comment:1 Changed 10 years ago by Malcolm Tredinnick

This ticket depends upon the outcome of #2288.

comment:2 Changed 10 years ago by Chris Beaven

Triage Stage: UnreviewedDesign decision needed

Changed 10 years ago by James Bennett

Attachment: 2264.diff added

Patch documenting the cascading delete

comment:3 Changed 10 years ago by James Bennett

Triage Stage: Design decision neededReady for checkin

It seems unlikely that #2288 will be resolved any time soon, and in the meantime people need to know how the delete behavior works, so I'm attaching a patch and bumping to "ready for checkin".

comment:4 Changed 10 years ago by Jacob

Resolution: fixed
Status: newclosed

(In [4636]) Fixed #2264: the docs now mention that delete() cascades. Thanks, Ubernostrum

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