From bec4dea844332390aecd72f22afc6673a3f5f5fc Mon Sep 17 00:00:00 2001 From: Hasan Ramezani Date: Thu, 26 Mar 2020 22:22:15 +0100 Subject: [PATCH] Fixed #31400 -- Doc'd the expected type of CONN_MAX_AGE database option. --- docs/ref/databases.txt | 2 +- docs/ref/settings.txt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index 4d4a7d2aa9b..2358310e8d4 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -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 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``. Connection management diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index 8c3f6f2b473..0e94dc95069 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -597,9 +597,9 @@ file. When specifying the path, always use forward slashes, even on Windows Default: ``0`` -The lifetime of a database connection, in seconds. Use ``0`` to close database -connections at the end of each request — Django's historical behavior — and -``None`` for unlimited persistent connections. +The lifetime of a database connection, as an integer of seconds. Use ``0`` to +close database connections at the end of each request — Django's historical +behavior — and ``None`` for unlimited persistent connections. .. setting:: OPTIONS