Skip to content

Commit

Permalink
fix: Fixing README.rst to fix release failure. (#885)
Browse files Browse the repository at this point in the history
* fix: Fixing README.rst to fix release failure.

#883

* More changes

* More changes
  • Loading branch information
ankiaga authored May 7, 2024
1 parent 681a179 commit 45a486a
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -140,23 +140,19 @@ 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
Expand Down

0 comments on commit 45a486a

Please sign in to comment.