From c9813be4f6c42cf929cba045f5a41627b347694f Mon Sep 17 00:00:00 2001 From: Ben Cail Date: Fri, 23 Feb 2024 12:02:34 -0500 Subject: [PATCH] update docs --- docs/releases/5.1.txt | 4 ++-- docs/topics/db/tablespaces.txt | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/releases/5.1.txt b/docs/releases/5.1.txt index 88cc0f6b91..b81437a6ee 100644 --- a/docs/releases/5.1.txt +++ b/docs/releases/5.1.txt @@ -433,8 +433,8 @@ Miscellaneous * Overriding existing converters with ``django.urls.register_converter()`` is deprecated. * The :setting:`DEFAULT_TABLESPACE` and :setting:`DEFAULT_INDEX_TABLESPACE` -settings are deprecated. Set them in the :setting:`OPTIONS` part of your -database configuration in :setting:`DATABASES` instead. + settings are deprecated. Set them in the :setting:`OPTIONS` part of your + database configuration in :setting:`DATABASES` instead. * The ``check`` keyword argument of ``CheckConstraint`` is deprecated in favor of ``condition``. diff --git a/docs/topics/db/tablespaces.txt b/docs/topics/db/tablespaces.txt index 3326b48d64..cb0b69764c 100644 --- a/docs/topics/db/tablespaces.txt +++ b/docs/topics/db/tablespaces.txt @@ -21,7 +21,7 @@ the :attr:`~django.db.models.Options.db_tablespace` option inside the model's ``class Meta``. This option also affects tables automatically created for :class:`~django.db.models.ManyToManyField`\ s in the model. -You can use `DEFAULT_TABLESPACE` in the :setting:`OPTIONS` part of your +You can use ``DEFAULT_TABLESPACE`` in the :setting:`OPTIONS` part of your database configuration in :setting:`DATABASES` to specify a default value for :attr:`~django.db.models.Options.db_tablespace`. This is useful for setting a tablespace for the built-in Django apps and other applications whose code you @@ -41,13 +41,13 @@ For single field indexes, you can pass the to specify an alternate tablespace for the field's column index. If the column doesn't have an index, the option is ignored. -You can use `DEFAULT_INDEX_TABLESPACE` in the :setting:`OPTIONS` part of your +You can use ``DEFAULT_INDEX_TABLESPACE`` in the :setting:`OPTIONS` part of your database configuration in :setting:`DATABASES` to specify a default value for :attr:`~django.db.models.Field.db_tablespace`. If :attr:`~django.db.models.Field.db_tablespace` isn't specified and you didn't -set `DEFAULT_INDEX_TABLESPACE`, the index is created in the same -tablespace as the tables. +set ``DEFAULT_INDEX_TABLESPACE``, the index is created in the same tablespace +as the tables. .. warning:: The :setting:`DEFAULT_INDEX_TABLESPACE` global setting, which works the