use transaction.commit_on_success instead of transaction.atomic (for pre-1.5 Django versions