Opened 5 years ago

Closed 5 years ago

Last modified 4 years ago

#13731 closed (wontfix)

Missing docs how to emulate "ON DELETE SET NULL"

Reported by: guettli Owned by: nobody
Component: Documentation Version: 1.2
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

The documentation does not explain how to emulate "ON DELETE SET NULL":

http://docs.djangoproject.com/en/dev/topics/db/queries/#deleting-objects

Even a delete() method of your model does not help, since this is not called
if you delete objects with bulk delete of a queryset.

Change History (4)

comment:1 Changed 5 years ago by guettli

  • Cc hv@… added
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

comment:2 Changed 5 years ago by guettli

related: #9308

comment:3 Changed 5 years ago by russellm

  • Resolution set to wontfix
  • Status changed from new to closed

The documentation shouldn't be documenting how to emulate ON DELETE SET NULL -- it should have an actual implementation of that behaviour. This is the subject of #7539.

comment:4 Changed 4 years ago by anonymous

  • Cc hv@… removed
Note: See TracTickets for help on using tickets.
Back to Top