Changes between Initial Version and Version 6 of Ticket #33054
- Timestamp:
- Aug 30, 2021, 12:15:39 AM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #33054
- Property Cc added
- Property Triage Stage Unreviewed → Ready for checkin
- Property Summary Support post-commit hooks adding more post-commit hooks → Make captureOnCommitCallbacks capture callbacks added by callbacks
- Property Owner changed from to
- Property Status new → assigned
-
Ticket #33054 – Description
initial v6 1 Sometimes there's a need to add additional on_commit callback from on_commit callback. For example, on_commit callback saves some model, but post_save handler for that model also uses on_commit callback to perform some additional action (e.g. spawn celery task). Current Django code ignores new callbacks added during on_commit callback execution.1 Sometimes there's a need to add additional on_commit callback from on_commit callback. For example, on_commit callback saves some model, but post_save handler for that model also uses on_commit callback to perform some additional action (e.g. spawn celery task). Current Django TestCase code ignores new callbacks added during on_commit callback execution. 2 2 3 3 I present a simple solution for this problem: