AntiPattern
Transactional Boundary Misuse
transactional-boundary-rollback-antipattern
Django transaction.atomic causes exceptions to rollback the entire transaction, so status/state writes and failure records undo together; attempts at persistence or dedup checks then misfire, requiring failure inserts to be isolated and errors to be properly logged.