I noticed that by default, all updates in the django admin site are done as transactions.
I need to either: - turn off transactions (globally or for a particular admin view) - inside of a save() method of an entity being saved via the admin interface, commit the transaction
The reason is that I overrode the save() method, and am notifying an external, non-django system about the change that just took place. However, the external system does not see the update since django has still not committed the transaction.
Does anyone have any suggestions on how to accomplish this?
You can use commit_manually to get full control of a transaction in a particular view/function.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With