Code

Opened 4 years ago

Closed 4 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.

Attachments (0)

Change History (4)

comment:1 Changed 4 years ago by guettli

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

comment:2 Changed 4 years ago by guettli

related: #9308

comment:3 Changed 4 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

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.