[Django] #33629: Errors in PostgreSQL instruc on delete

8 views
Skip to first unread message

Django

unread,
Apr 9, 2022, 12:49:41 PM4/9/22
to django-...@googlegroups.com
#33629: Errors in PostgreSQL instruc on delete
-----------------------------------------+------------------------
Reporter: wrcarrizo | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 3.2
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
Django does not correctly generate postgreSQL onDelete Cascade, and does
not generate on UPDATE

--
Ticket URL: <https://code.djangoproject.com/ticket/33629>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Apr 9, 2022, 6:51:28 PM4/9/22
to django-...@googlegroups.com
#33629: Errors in PostgreSQL instruc on delete
-------------------------------------+-------------------------------------
Reporter: wrcarrizo | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 3.2
(models, ORM) |
Severity: Normal | Resolution: invalid

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):

* status: new => closed
* resolution: => invalid
* component: Uncategorized => Database layer (models, ORM)
* type: Uncategorized => Bug


Comment:

[https://docs.djangoproject.com/en/4.0/ref/models/fields/#django.db.models.CASCADE
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/33629#comment:1>

Reply all
Reply to author
Forward
0 new messages