#21461: Add pre_update and post_update signals -------------------------------------+------------------------------------- Reporter: loic84 | Owner: loic84 Type: New feature | Status: assigned Component: Database layer | Version: dev (models, ORM) | Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 1 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Olivier Dalang): For reference, here's a package implementing this : https://github.com/martinphellwig/django-query-signals It includes also other bulk methods such as delete or bulk_create. From the code, it looks like it suffers from edge case described above (`the original queryset doesn't work for post_update, the update might cause different instances to be returned than was updated, consider qs.filter(deleted=False).update(deleted=True)`), but nothing unfixable it seems. -- Ticket URL: <https://code.djangoproject.com/ticket/21461#comment:18> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/064.dd4b523d715cdde6fadf82d3cdf61128%40djangoproject.com.