Created
October 8, 2016 03:57
-
-
Save tapanpandita/745793b33e3a2189908683f40b3fb9e2 to your computer and use it in GitHub Desktop.
Transaction code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with transaction.atomic(): | |
# update task | |
# update driver | |
event = Event.objects.create(...) | |
push_event.delay(event.id) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment