Opened 18 years ago

Closed 18 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: no UI/UX: no

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 18 years ago.
Patch documenting the cascading delete

Download all attachments as: .zip

Change History (5)

comment:1 by Malcolm Tredinnick, 18 years ago

This ticket depends upon the outcome of #2288.

comment:2 by Chris Beaven, 18 years ago

Triage Stage: UnreviewedDesign decision needed

by James Bennett, 18 years ago

Attachment: 2264.diff added

Patch documenting the cascading delete

comment:3 by James Bennett, 18 years ago

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 by Jacob, 18 years ago

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