Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- with transaction.atomic():
- do something like subtract stock
- log stuff in DB so that we can later investigate what went wrong
- if something goes wrong: # this line of code may reside in a function nested deep
- raise
- do more to finalize the order
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement