[Django] #29319: post_delete signals is

9 views
Skip to first unread message

Django

unread,
Apr 12, 2018, 8:37:46 AM4/12/18
to django-...@googlegroups.com
#29319: post_delete signals is
-------------------------------------+-------------------------------------
Reporter: nippo | Owner: nobody
Type: Bug | Status: new
Component: Database | Version: 2.0
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
https://github.com/django/django/blob/ee17bb8a67a9e7e688da6e6f4b3be1b3a69c09b0/django/db/models/deletion.py#L305


The post_delete signals is sent before objects are really deleted. For
exemple, for "Document" objects, the file is not yet removed in the file
system...

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

Django

unread,
Apr 12, 2018, 9:46:56 AM4/12/18
to django-...@googlegroups.com
#29319: post_delete signals is
-------------------------------------+-------------------------------------
Reporter: Nicolas Ippolito | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 2.0
(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 Simon Charette):

* status: new => closed
* resolution: => invalid


Comment:

> The post_delete signals is sent before objects are really deleted.

The `post_delete` signal is correctly sent once the objects are deleted
from the database.

> For exemple, for "Document" objects, the file is not yet removed in the
file system...

Django hasn't been deleting files referenced by `FileField` on model
deletion [https://docs.djangoproject.com/en/2.0/releases/1.3/#deleting-a
-model-doesn-t-delete-associated-files since Django 1.3].

Please re-open with more details if I missed something.

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

Django

unread,
Apr 12, 2018, 12:53:46 PM4/12/18
to django-...@googlegroups.com
#29319: post_delete signals is sent before objects are deleted

-------------------------------------+-------------------------------------
Reporter: Nicolas Ippolito | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 2.0
(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
-------------------------------------+-------------------------------------

--
Ticket URL: <https://code.djangoproject.com/ticket/29319#comment:2>

Django

unread,
Apr 13, 2018, 4:06:03 AM4/13/18
to django-...@googlegroups.com
#29319: post_delete signals is sent before objects are deleted
-------------------------------------+-------------------------------------
Reporter: Nicolas Ippolito | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 2.0
(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
-------------------------------------+-------------------------------------

Comment (by Nicolas Ippolito):

Thanks!

--
Ticket URL: <https://code.djangoproject.com/ticket/29319#comment:3>

Reply all
Reply to author
Forward
0 new messages