Changes between Initial Version and Version 6 of Ticket #33054


Ignore:
Timestamp:
Aug 30, 2021, 12:15:39 AM (3 years ago)
Author:
Evgenii Morozov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33054

    • Property Cc Adam Johnson added
    • Property Triage Stage UnreviewedReady for checkin
    • Property Summary Support post-commit hooks adding more post-commit hooksMake captureOnCommitCallbacks capture callbacks added by callbacks
    • Property Owner changed from nobody to Evgenii Morozov
    • Property Status newassigned
  • 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.
     1Sometimes 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.
    22
    33I present a simple solution for this problem:
Back to Top