summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-12-12 16:17:09 +0100
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2025-01-15 22:28:37 +0100
commit810edfd7428e12bd640573112c6c1a024ac33da2 (patch)
treec6dd06c80384f51aa373dfff5e0285d753a8830f /docs/ref
parent9b5ad4056ccf9ff7ea548f72d28eb66c1b4f84cc (diff)
Removed versionadded/changed annotations for 5.1.
This also removes remaining versionadded/changed annotations for older versions.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/contrib/admin/index.txt15
-rw-r--r--docs/ref/contrib/contenttypes.txt4
-rw-r--r--docs/ref/contrib/gis/functions.txt12
-rw-r--r--docs/ref/contrib/gis/gdal.txt17
-rw-r--r--docs/ref/contrib/gis/geoquerysets.txt4
-rw-r--r--docs/ref/contrib/gis/measure.txt4
-rw-r--r--docs/ref/contrib/postgres/indexes.txt4
-rw-r--r--docs/ref/databases.txt6
-rw-r--r--docs/ref/files/storage.txt2
-rw-r--r--docs/ref/forms/fields.txt8
-rw-r--r--docs/ref/logging.txt2
-rw-r--r--docs/ref/middleware.txt4
-rw-r--r--docs/ref/migration-operations.txt2
-rw-r--r--docs/ref/models/expressions.txt19
-rw-r--r--docs/ref/models/instances.txt4
-rw-r--r--docs/ref/models/querysets.txt4
-rw-r--r--docs/ref/templates/builtins.txt2
-rw-r--r--docs/ref/utils.txt5
-rw-r--r--docs/ref/validators.txt4
19 files changed, 0 insertions, 122 deletions
diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt
index 1b02b7d403..311b21ec6e 100644
--- a/docs/ref/contrib/admin/index.txt
+++ b/docs/ref/contrib/admin/index.txt
@@ -432,11 +432,6 @@ subclass::
collapsed, using an expandable widget with a toggle for switching
their visibility.
- .. versionchanged:: 5.1
-
- ``fieldsets`` using the ``collapse`` class now use ``<details>``
- and ``<summary>`` elements, provided they define a ``name``.
-
* ``description``
A string of optional extra text to be displayed at the top of each
fieldset, under the heading of the fieldset.
@@ -639,11 +634,6 @@ subclass::
class PersonAdmin(admin.ModelAdmin):
list_display = ["name", "decade_born_in"]
- .. versionchanged:: 5.1
-
- Support for using ``__`` lookups was added, when targeting related
- fields.
-
A few special cases to note about ``list_display``:
* If the field is a ``ForeignKey``, Django will display the
@@ -2337,11 +2327,6 @@ The ``InlineModelAdmin`` class adds or customizes:
configured in :attr:`~ModelAdmin.fieldsets`, inlines with a ``collapse``
class will be initially collapsed using an expandable widget.
- .. versionchanged:: 5.1
-
- ``fieldsets`` using the ``collapse`` class now use ``<details>`` and
- ``<summary>`` elements, provided they define a ``name``.
-
.. attribute:: InlineModelAdmin.extra
This controls the number of extra forms the formset will display in
diff --git a/docs/ref/contrib/contenttypes.txt b/docs/ref/contrib/contenttypes.txt
index 18eaff43b2..d8f4b24753 100644
--- a/docs/ref/contrib/contenttypes.txt
+++ b/docs/ref/contrib/contenttypes.txt
@@ -115,10 +115,6 @@ model it represents, or to retrieve objects from that model:
on that model, returning the corresponding object. The ``using`` argument
can be used to specify a different database than the default one.
- .. versionchanged:: 5.1
-
- The ``using`` argument was added.
-
.. method:: ContentType.model_class()
Returns the model class represented by this
diff --git a/docs/ref/contrib/gis/functions.txt b/docs/ref/contrib/gis/functions.txt
index ff62c17580..055c5217f7 100644
--- a/docs/ref/contrib/gis/functions.txt
+++ b/docs/ref/contrib/gis/functions.txt
@@ -238,10 +238,6 @@ polygon that can fully contain the geometry.
The ``num_seg`` parameter is used only on PostGIS.
-.. versionchanged:: 5.1
-
- SpatiaLite 5.1+ support was added.
-
``Centroid``
============
@@ -367,10 +363,6 @@ Creates geometry from `Well-known binary (WKB)`_ representation. The optional
``srid`` argument allows to specify the SRID of the resulting geometry.
``srid`` is ignored on Oracle.
-.. versionchanged:: 5.1
-
- The ``srid`` argument was added.
-
``FromWKT``
===========
@@ -384,10 +376,6 @@ Creates geometry from `Well-known text (WKT)`_ representation. The optional
``srid`` argument allows to specify the SRID of the resulting geometry.
``srid`` is ignored on Oracle.
-.. versionchanged:: 5.1
-
- The ``srid`` argument was added.
-
``GeoHash``
===========
diff --git a/docs/ref/contrib/gis/gdal.txt b/docs/ref/contrib/gis/gdal.txt
index 726cd83756..1ec04d342f 100644
--- a/docs/ref/contrib/gis/gdal.txt
+++ b/docs/ref/contrib/gis/gdal.txt
@@ -562,14 +562,10 @@ coordinate transformation:
.. attribute:: is_3d
- .. versionadded:: 5.1
-
A boolean indicating if this geometry has Z coordinates.
.. method:: set_3d(value)
- .. versionadded:: 5.1
-
A method that adds or removes the Z coordinate dimension.
.. code-block:: pycon
@@ -583,14 +579,10 @@ coordinate transformation:
.. attribute:: is_measured
- .. versionadded:: 5.1
-
A boolean indicating if this geometry has M coordinates.
.. method:: set_measured(value)
- .. versionadded:: 5.1
-
A method to add or remove the M coordinate dimension.
.. code-block:: pycon
@@ -863,11 +855,6 @@ coordinate transformation:
Returns a :class:`Point` representing the centroid of this geometry.
- .. versionchanged:: 5.1
-
- ``centroid`` was promoted from a :class:`.Polygon` only attribute to
- being available on all geometry types.
-
.. attribute:: tuple
Returns the coordinates of a point geometry as a tuple, the
@@ -916,8 +903,6 @@ coordinate transformation:
.. attribute:: m
- .. versionadded:: 5.1
-
Returns the M coordinate of this point, or ``None`` if the Point does not
have an M coordinate:
@@ -958,8 +943,6 @@ coordinate transformation:
.. attribute:: m
- .. versionadded:: 5.1
-
Returns a list of M coordinates in this line or ``None`` if the line does
not have M coordinates:
diff --git a/docs/ref/contrib/gis/geoquerysets.txt b/docs/ref/contrib/gis/geoquerysets.txt
index 19411b7304..cf50af2c9f 100644
--- a/docs/ref/contrib/gis/geoquerysets.txt
+++ b/docs/ref/contrib/gis/geoquerysets.txt
@@ -894,10 +894,6 @@ aggregate, except it can be several orders of magnitude faster than performing
a union because it rolls up geometries into a collection or multi object, not
caring about dissolving boundaries.
-.. versionchanged:: 5.1
-
- MySQL 8.0.24+ support was added.
-
.. versionchanged:: 5.2
MariaDB 11.7+ support was added.
diff --git a/docs/ref/contrib/gis/measure.txt b/docs/ref/contrib/gis/measure.txt
index cee4211220..1d88ba129d 100644
--- a/docs/ref/contrib/gis/measure.txt
+++ b/docs/ref/contrib/gis/measure.txt
@@ -125,10 +125,6 @@ Unit Attribute Full name or alias(es)
``ha`` Hectare
================================= ========================================
-.. versionchanged:: 5.1
-
- Support for the ``ha`` unit was added.
-
Measurement API
===============
diff --git a/docs/ref/contrib/postgres/indexes.txt b/docs/ref/contrib/postgres/indexes.txt
index 107d9c278d..f001fd0063 100644
--- a/docs/ref/contrib/postgres/indexes.txt
+++ b/docs/ref/contrib/postgres/indexes.txt
@@ -57,10 +57,6 @@ available from the ``django.contrib.postgres.indexes`` module.
whether deduplication is enabled. PostgreSQL enables deduplication by
default.
- .. versionchanged:: 5.1
-
- The ``deduplicate_items`` parameter was added.
-
.. _fillfactor: https://www.postgresql.org/docs/current/sql-createindex.html#SQL-CREATEINDEX-STORAGE-PARAMETERS
.. _deduplicate_items: https://www.postgresql.org/docs/current/btree-implementation.html#BTREE-DEDUPLICATION
diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt
index d19c78b9ec..b3c429d8a2 100644
--- a/docs/ref/databases.txt
+++ b/docs/ref/databases.txt
@@ -250,8 +250,6 @@ database configuration in :setting:`DATABASES`::
Connection pool
---------------
-.. versionadded:: 5.1
-
To use a connection pool with `psycopg`_, you can either set ``"pool"`` in the
:setting:`OPTIONS` part of your database configuration in :setting:`DATABASES`
to be a dict to be passed to :class:`~psycopg:psycopg_pool.ConnectionPool`, or
@@ -898,8 +896,6 @@ If you're getting this error, you can solve it by:
Transactions behavior
~~~~~~~~~~~~~~~~~~~~~
-.. versionadded:: 5.1
-
SQLite supports three transaction modes: ``DEFERRED``, ``IMMEDIATE``, and
``EXCLUSIVE``.
@@ -969,8 +965,6 @@ To enable the JSON1 extension you can follow the instruction on
Setting pragma options
----------------------
-.. versionadded:: 5.1
-
`Pragma options`_ can be set upon connection by using the ``init_command`` in
the :setting:`OPTIONS` part of your database configuration in
:setting:`DATABASES`. The example below shows how to enable extra durability of
diff --git a/docs/ref/files/storage.txt b/docs/ref/files/storage.txt
index 52c8f90427..228025fe3a 100644
--- a/docs/ref/files/storage.txt
+++ b/docs/ref/files/storage.txt
@@ -80,8 +80,6 @@ The ``FileSystemStorage`` class
.. attribute:: allow_overwrite
- .. versionadded:: 5.1
-
Flag to control allowing saving a new file over an existing one.
Defaults to ``False``.
diff --git a/docs/ref/forms/fields.txt b/docs/ref/forms/fields.txt
index 7ae5c121eb..91faea12f7 100644
--- a/docs/ref/forms/fields.txt
+++ b/docs/ref/forms/fields.txt
@@ -320,10 +320,6 @@ inside ``aria-describedby``:
>>> print(f["username"])
<input type="text" name="username" aria-describedby="custom-description id_username_helptext" maxlength="255" id="id_username" required>
-.. versionchanged:: 5.1
-
- ``aria-describedby`` support was added for ``<fieldset>``.
-
``error_messages``
------------------
@@ -799,10 +795,6 @@ For each field, we describe the default widget used if you don't specify
Defaults to 39, and behaves the same way as it does for
:class:`CharField`.
- .. versionchanged:: 4.2.18
-
- The default value for ``max_length`` was set to 39 characters.
-
``ImageField``
--------------
diff --git a/docs/ref/logging.txt b/docs/ref/logging.txt
index 24ab5d97f3..a045d4d7d7 100644
--- a/docs/ref/logging.txt
+++ b/docs/ref/logging.txt
@@ -214,8 +214,6 @@ messages during filesystem inspection and event subscription processes.
``django.contrib.auth``
~~~~~~~~~~~~~~~~~~~~~~~
-.. versionadded:: 4.2.16
-
Log messages related to :doc:`contrib/auth`, particularly ``ERROR`` messages
are generated when a :class:`~django.contrib.auth.forms.PasswordResetForm` is
successfully submitted but the password reset email cannot be delivered due to
diff --git a/docs/ref/middleware.txt b/docs/ref/middleware.txt
index b5534ce8f6..e09df637f1 100644
--- a/docs/ref/middleware.txt
+++ b/docs/ref/middleware.txt
@@ -523,8 +523,6 @@ every incoming ``HttpRequest`` object. See :ref:`Authentication in web requests
``None``), or :attr:`redirect_field_name`. If ``None`` is returned, a query
parameter won't be added.
-.. versionadded:: 5.1
-
Redirects all unauthenticated requests to a login page, except for views
excluded with :func:`~.django.contrib.auth.decorators.login_not_required`. The
login page defaults to :setting:`settings.LOGIN_URL <LOGIN_URL>`, but can be
@@ -682,8 +680,6 @@ Here are some hints about the ordering of various Django middleware classes:
#. :class:`~django.contrib.auth.middleware.LoginRequiredMiddleware`
- .. versionadded:: 5.1
-
After ``AuthenticationMiddleware``: uses user object.
#. :class:`~django.contrib.messages.middleware.MessageMiddleware`
diff --git a/docs/ref/migration-operations.txt b/docs/ref/migration-operations.txt
index b969b3dbfd..f4d4ae96dd 100644
--- a/docs/ref/migration-operations.txt
+++ b/docs/ref/migration-operations.txt
@@ -498,8 +498,6 @@ For an example using ``SeparateDatabaseAndState``, see
Operation category
==================
-.. versionadded:: 5.1
-
.. currentmodule:: django.db.migrations.operations.base
.. class:: OperationCategory
diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt
index 5d5504dbe7..6a6356b3bb 100644
--- a/docs/ref/models/expressions.txt
+++ b/docs/ref/models/expressions.txt
@@ -188,8 +188,6 @@ the field value of each one, and saving each one back to the database::
Slicing ``F()`` expressions
~~~~~~~~~~~~~~~~~~~~~~~~~~~
-.. versionadded:: 5.1
-
For string-based fields, text-based fields, and
:class:`~django.contrib.postgres.fields.ArrayField`, you can use Python's
array-slicing syntax. The indices are 0-based and the ``step`` argument to
@@ -920,20 +918,12 @@ ordinary sequence of rows.
the standard start and end points, such as ``CURRENT ROW`` and ``UNBOUNDED
FOLLOWING``.
- .. versionchanged:: 5.1
-
- The ``exclusion`` argument was added.
-
.. class:: RowRange(start=None, end=None, exclusion=None)
.. attribute:: frame_type
This attribute is set to ``'ROWS'``.
- .. versionchanged:: 5.1
-
- The ``exclusion`` argument was added.
-
Both classes return SQL with the template:
.. code-block:: sql
@@ -942,8 +932,6 @@ Both classes return SQL with the template:
.. class:: WindowFrameExclusion
- .. versionadded:: 5.1
-
.. attribute:: CURRENT_ROW
.. attribute:: GROUP
@@ -1024,11 +1012,6 @@ released between twelve months before and twelve months after each movie:
... ),
... )
-.. versionchanged:: 5.1
-
- Support for positive integer ``start`` and negative integer ``end`` was
- added for ``RowRange``.
-
.. currentmodule:: django.db.models
Technical Information
@@ -1059,8 +1042,6 @@ calling the appropriate methods on the wrapped expression.
.. attribute:: constraint_validation_compatible
- .. versionadded:: 5.1
-
Tells Django that this expression can be used during a constraint
validation. Expressions with ``constraint_validation_compatible`` set
to ``False`` must have only one source expression. Defaults to
diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt
index 7482b98a66..c4bf8aae5f 100644
--- a/docs/ref/models/instances.txt
+++ b/docs/ref/models/instances.txt
@@ -214,10 +214,6 @@ values::
obj.refresh_from_db(from_queryset=MyModel.objects.select_for_update())
-.. versionchanged:: 5.1
-
- The ``from_queryset`` argument was added.
-
.. method:: Model.get_deferred_fields()
A helper method that returns a set containing the attribute names of all those
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index ec27936cdb..8bf83838c0 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -3106,10 +3106,6 @@ adverse effects on your database. For example, the ``ANALYZE`` flag supported
by MariaDB, MySQL 8.0.18+, and PostgreSQL could result in changes to data if
there are triggers or if a function is called, even for a ``SELECT`` query.
-.. versionchanged:: 5.1
-
- Support for the ``generic_plan`` option on PostgreSQL 16+ was added.
-
.. versionchanged:: 5.2
Support for the ``memory`` and ``serialize`` options on PostgreSQL 17+ was
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt
index 8673727861..f35935c160 100644
--- a/docs/ref/templates/builtins.txt
+++ b/docs/ref/templates/builtins.txt
@@ -957,8 +957,6 @@ output (as a string) inside a variable. This is useful if you want to use
``querystring``
----------------
-.. versionadded:: 5.1
-
Outputs a URL-encoded formatted query string based on the provided parameters.
This tag requires a :class:`~django.http.QueryDict` instance, which defaults to
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt
index 438a38cea0..72e7eb31c8 100644
--- a/docs/ref/utils.txt
+++ b/docs/ref/utils.txt
@@ -1179,11 +1179,6 @@ For a complete discussion on the usage of the following see the
Raises :exc:`LookupError` if nothing is found.
- .. versionchanged:: 4.2.15
-
- In older versions, ``lang_code`` values over 500 characters were
- processed without raising a :exc:`LookupError`.
-
.. function:: to_locale(language)
Turns a language name (en-us) into a locale name (en_US).
diff --git a/docs/ref/validators.txt b/docs/ref/validators.txt
index 846a3c7157..3493363420 100644
--- a/docs/ref/validators.txt
+++ b/docs/ref/validators.txt
@@ -162,8 +162,6 @@ to, or in lieu of custom ``field.clean()`` methods.
``DomainNameValidator``
-----------------------
-.. versionadded:: 5.1
-
.. class:: DomainNameValidator(accept_idna=True, message=None, code=None)
A :class:`RegexValidator` subclass that ensures a value looks like a domain
@@ -223,8 +221,6 @@ to, or in lieu of custom ``field.clean()`` methods.
``validate_domain_name``
------------------------
-.. versionadded:: 5.1
-
.. data:: validate_domain_name
A :class:`DomainNameValidator` instance without any customizations.