Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#33629 closed Bug (invalid)

Errors in PostgreSQL instruc on delete

Reported by: wrcarrizo Owned by: nobody
Component: Database layer (models, ORM) Version: 3.2
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Django does not correctly generate postgreSQL onDelete Cascade, and does not generate on UPDATE

Change History (1)

comment:1 by Tim Graham, 3 years ago

Component: UncategorizedDatabase layer (models, ORM)
Resolution: invalid
Status: newclosed
Type: UncategorizedBug

As documented, "Django emulates the behavior of the SQL constraint ON DELETE CASCADE and also deletes the object containing the ForeignKey." (Django doesn't create an ON DELETE CASCADE constraint.)

I'm not sure what you mean by "and does not generate on UPDATE." If you believe there's a bug in Django, please give a more detailed explanation. Thanks.

Last edited 3 years ago by Tim Graham (previous) (diff)
Note: See TracTickets for help on using tickets.
Back to Top