From 40aa36f835591558bf19fa659a152beb88f73887 Mon Sep 17 00:00:00 2001 From: ankiaga Date: Tue, 7 May 2024 10:09:30 +0530 Subject: [PATCH 1/3] fix: Fixing README.rst to fix release failure. https://github.com/googleapis/python-spanner-django/issues/883 --- README.rst | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/README.rst b/README.rst index a9aa48084f..2f230ca4d5 100644 --- a/README.rst +++ b/README.rst @@ -140,23 +140,23 @@ configured: } } - Transaction support in autocommit mode - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - - Django version 4.2 and higher by default supports transactions in autocommit mode. - A transaction is automatically started if you define an - [atomic block](https://docs.djangoproject.com/en/4.2/topics/db/transactions/#controlling-transactions-explicitly). - - Django version 3.2 and earlier did not support transactions in autocommit mode with Spanner. - You can enable transactions in autocommit mode with Spanner with the - `ALLOW_TRANSACTIONS_IN_AUTO_COMMIT` configuration option. - - - To enable transactions in autocommit mode in V3.2, set - the flag "ALLOW_TRANSACTIONS_IN_AUTO_COMMIT" to True in your - settings.py file. - - To disable transactions in autocommit mode in V4.2, set - the flag "ALLOW_TRANSACTIONS_IN_AUTO_COMMIT" to False in your - settings.py file. +Transaction support in autocommit mode +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Django version 4.2 and higher by default supports transactions in autocommit mode. +A transaction is automatically started if you define an +[atomic block](https://docs.djangoproject.com/en/4.2/topics/db/transactions/#controlling-transactions-explicitly). + +Django version 3.2 and earlier did not support transactions in autocommit mode with Spanner. +You can enable transactions in autocommit mode with Spanner with the +`ALLOW_TRANSACTIONS_IN_AUTO_COMMIT` configuration option. + + - To enable transactions in autocommit mode in V3.2, set +the flag `ALLOW_TRANSACTIONS_IN_AUTO_COMMIT` to True in your +settings.py file. + - To disable transactions in autocommit mode in V4.2, set +the flag `ALLOW_TRANSACTIONS_IN_AUTO_COMMIT` to False in your +settings.py file. Set credentials and project environment variables From f10258426e454dee70b8f43e09453e7045e03791 Mon Sep 17 00:00:00 2001 From: ankiaga Date: Tue, 7 May 2024 10:12:54 +0530 Subject: [PATCH 2/3] More changes --- README.rst | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.rst b/README.rst index 2f230ca4d5..7982489f19 100644 --- a/README.rst +++ b/README.rst @@ -151,12 +151,8 @@ Django version 3.2 and earlier did not support transactions in autocommit mode w You can enable transactions in autocommit mode with Spanner with the `ALLOW_TRANSACTIONS_IN_AUTO_COMMIT` configuration option. - - To enable transactions in autocommit mode in V3.2, set -the flag `ALLOW_TRANSACTIONS_IN_AUTO_COMMIT` to True in your -settings.py file. - - To disable transactions in autocommit mode in V4.2, set -the flag `ALLOW_TRANSACTIONS_IN_AUTO_COMMIT` to False in your -settings.py file. + - To enable transactions in autocommit mode in V3.2, set the flag `ALLOW_TRANSACTIONS_IN_AUTO_COMMIT` to True in your settings.py file. + - To disable transactions in autocommit mode in V4.2, set the flag `ALLOW_TRANSACTIONS_IN_AUTO_COMMIT` to False in your settings.py file. Set credentials and project environment variables From 86814209e37aa3377af4ee74cf5542b455504fa5 Mon Sep 17 00:00:00 2001 From: ankiaga Date: Tue, 7 May 2024 10:14:44 +0530 Subject: [PATCH 3/3] More changes --- README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 7982489f19..0db8d56191 100644 --- a/README.rst +++ b/README.rst @@ -151,8 +151,8 @@ Django version 3.2 and earlier did not support transactions in autocommit mode w You can enable transactions in autocommit mode with Spanner with the `ALLOW_TRANSACTIONS_IN_AUTO_COMMIT` configuration option. - - To enable transactions in autocommit mode in V3.2, set the flag `ALLOW_TRANSACTIONS_IN_AUTO_COMMIT` to True in your settings.py file. - - To disable transactions in autocommit mode in V4.2, set the flag `ALLOW_TRANSACTIONS_IN_AUTO_COMMIT` to False in your settings.py file. +- To enable transactions in autocommit mode in V3.2, set the flag `ALLOW_TRANSACTIONS_IN_AUTO_COMMIT` to True in your settings.py file. +- To disable transactions in autocommit mode in V4.2, set the flag `ALLOW_TRANSACTIONS_IN_AUTO_COMMIT` to False in your settings.py file. Set credentials and project environment variables