Removed deprecated transaction.commit_on_save and replaced with transaction.atomic