From 2b972ff07c45b78d815fda04052dc3c88a9d892b Mon Sep 17 00:00:00 2001 From: Ben Cail Date: Wed, 14 Feb 2024 14:49:28 -0500 Subject: [PATCH] Fixed #20960 - moved DEFAULT_TABLESPACE to DATABASES --- django/conf/global_settings.py | 1 + docs/internals/deprecation.txt | 2 ++ docs/ref/settings.txt | 4 ++++ 3 files changed, 7 insertions(+) diff --git a/django/conf/global_settings.py b/django/conf/global_settings.py index f4535acb09..1a9c157026 100644 --- a/django/conf/global_settings.py +++ b/django/conf/global_settings.py @@ -436,6 +436,7 @@ NUMBER_GROUPING = 0 # Thousand separator symbol THOUSAND_SEPARATOR = "," +# RemovedInDjango60Warning: Use the OPTION in the DATABASES dict instead. # The tablespaces to use for each model when not specified otherwise. DEFAULT_TABLESPACE = "" DEFAULT_INDEX_TABLESPACE = "" diff --git a/docs/internals/deprecation.txt b/docs/internals/deprecation.txt index 85ad0d400f..8c84460a10 100644 --- a/docs/internals/deprecation.txt +++ b/docs/internals/deprecation.txt @@ -95,6 +95,8 @@ details on these changes. * The ``get_cache_name()`` method of ``FieldCacheMixin`` will be removed. +* The DEFAULT_TABLESPACE and DEFAULT_INDEX_TABLESPACE settings will be removed. + .. _deprecation-removed-in-5.1: 5.1 diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index e3a0f6d32a..456caa4783 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -1354,6 +1354,8 @@ This doesn't affect error messages sent to :setting:`ADMINS` and ``DEFAULT_INDEX_TABLESPACE`` ---------------------------- +.. deprecated:: 5.1 + Default: ``''`` (Empty string) Default tablespace to use for indexes on fields that don't specify @@ -1364,6 +1366,8 @@ one, if the backend supports it (see :doc:`/topics/db/tablespaces`). ``DEFAULT_TABLESPACE`` ---------------------- +.. deprecated:: 5.1 + Default: ``''`` (Empty string) Default tablespace to use for models that don't specify one, if the