Replace @transaction.commit_on_success deprecated with @transaction.atomic