Fixed #31400 -- Doc'd the expected type of CONN_MAX_AGE database option.

This commit is contained in:
Hasan Ramezani 2020-03-26 22:22:15 +01:00 committed by Mariusz Felisiak
parent d0da2820ca
commit bec4dea844
2 changed files with 4 additions and 4 deletions

View File

@ -37,7 +37,7 @@ connection. It can be set independently for each database.
The default value is ``0``, preserving the historical behavior of closing the The default value is ``0``, preserving the historical behavior of closing the
database connection at the end of each request. To enable persistent database connection at the end of each request. To enable persistent
connections, set :setting:`CONN_MAX_AGE` to a positive number of seconds. For connections, set :setting:`CONN_MAX_AGE` to a positive integer of seconds. For
unlimited persistent connections, set it to ``None``. unlimited persistent connections, set it to ``None``.
Connection management Connection management

View File

@ -597,9 +597,9 @@ file. When specifying the path, always use forward slashes, even on Windows
Default: ``0`` Default: ``0``
The lifetime of a database connection, in seconds. Use ``0`` to close database The lifetime of a database connection, as an integer of seconds. Use ``0`` to
connections at the end of each request — Django's historical behavior — and close database connections at the end of each request — Django's historical
``None`` for unlimited persistent connections. behavior — and ``None`` for unlimited persistent connections.
.. setting:: OPTIONS .. setting:: OPTIONS