Opened 20 months ago

Closed 20 months ago

Last modified 20 months 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 Changed 20 months ago by Tim Graham

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 20 months ago by Tim Graham (previous) (diff)
Note: See TracTickets for help on using tickets.
Back to Top