diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-05 11:20:50 +0100 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-01-14 17:50:04 +0100 |
| commit | b7dd89ed5389067cb70294682ffef1ba23d33934 (patch) | |
| tree | 9d1cf97b9fda1ea8798cd543aee9d3f738a931f2 /docs/ref/models | |
| parent | 8774b1144c08f18e23381ffae7084dbc05ebfe37 (diff) | |
Removed versionadded/changed annotations for 3.1.
Diffstat (limited to 'docs/ref/models')
| -rw-r--r-- | docs/ref/models/constraints.txt | 6 | ||||
| -rw-r--r-- | docs/ref/models/database-functions.txt | 2 | ||||
| -rw-r--r-- | docs/ref/models/fields.txt | 10 | ||||
| -rw-r--r-- | docs/ref/models/instances.txt | 5 | ||||
| -rw-r--r-- | docs/ref/models/querysets.txt | 15 | ||||
| -rw-r--r-- | docs/ref/models/relations.txt | 12 |
6 files changed, 0 insertions, 50 deletions
diff --git a/docs/ref/models/constraints.txt b/docs/ref/models/constraints.txt index 1536a8692a..e3b682d1c5 100644 --- a/docs/ref/models/constraints.txt +++ b/docs/ref/models/constraints.txt @@ -58,10 +58,6 @@ specifies the check you want the constraint to enforce. For example, ``CheckConstraint(check=Q(age__gte=18), name='age_gte_18')`` ensures the age field is never less than 18. -.. versionchanged:: 3.1 - - Support for boolean :class:`~django.db.models.Expression` was added. - ``name`` -------- @@ -119,8 +115,6 @@ These conditions have the same database restrictions as .. attribute:: UniqueConstraint.deferrable -.. versionadded:: 3.1 - Set this parameter to create a deferrable unique constraint. Accepted values are ``Deferrable.DEFERRED`` or ``Deferrable.IMMEDIATE``. For example:: diff --git a/docs/ref/models/database-functions.txt b/docs/ref/models/database-functions.txt index 948ce4e3cc..b63b4cff4a 100644 --- a/docs/ref/models/database-functions.txt +++ b/docs/ref/models/database-functions.txt @@ -336,8 +336,6 @@ Usage example:: .. class:: ExtractIsoWeekDay(expression, tzinfo=None, **extra) - .. versionadded:: 3.1 - Returns the ISO-8601 week day with day 1 being Monday and day 7 being Sunday. diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt index a315402347..3409d2d023 100644 --- a/docs/ref/models/fields.txt +++ b/docs/ref/models/fields.txt @@ -842,10 +842,6 @@ Has two optional arguments: handles the storage and retrieval of your files. See :doc:`/topics/files` for details on how to provide this object. - .. versionchanged:: 3.1 - - The ability to provide a callable was added. - The default form widget for this field is a :class:`~django.forms.ClearableFileInput`. @@ -1198,8 +1194,6 @@ values are stored as null. .. class:: JSONField(encoder=None, decoder=None, **options) -.. versionadded:: 3.1 - A field for storing JSON encoded data. In Python the data is represented in its Python native format: dictionaries, lists, strings, numbers, booleans and ``None``. @@ -1276,8 +1270,6 @@ Like :class:`BooleanField` with ``null=True``. .. class:: PositiveBigIntegerField(**options) -.. versionadded:: 3.1 - Like a :class:`PositiveIntegerField`, but only allows values under a certain (database-dependent) point. Values from ``0`` to ``9223372036854775807`` are safe in all databases supported by Django. @@ -1579,8 +1571,6 @@ The possible values for :attr:`~ForeignKey.on_delete` are found in * .. attribute:: RESTRICT - .. versionadded:: 3.1 - Prevent deletion of the referenced object by raising :exc:`~django.db.models.RestrictedError` (a subclass of :exc:`django.db.IntegrityError`). Unlike :attr:`PROTECT`, deletion of the diff --git a/docs/ref/models/instances.txt b/docs/ref/models/instances.txt index 4222979972..7586159061 100644 --- a/docs/ref/models/instances.txt +++ b/docs/ref/models/instances.txt @@ -803,11 +803,6 @@ For example:: >>> p.get_shirt_size_display() 'Large' -.. versionchanged:: 3.1 - - Support for :class:`~django.contrib.postgres.fields.ArrayField` and - :class:`~django.contrib.postgres.fields.RangeField` was added. - .. method:: Model.get_next_by_FOO(**kwargs) .. method:: Model.get_previous_by_FOO(**kwargs) diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index 656bf537ad..eca0caf6d6 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -834,10 +834,6 @@ object. If it's ``None``, Django uses the :ref:`current time zone ambiguous datetimes in daylight saving time. By default (when ``is_dst=None``), ``pytz`` raises an exception for such datetimes. -.. versionadded:: 3.1 - - The ``is_dst`` parameter was added. - .. _database-time-zone-definitions: .. note:: @@ -2216,10 +2212,6 @@ normally supports it). Returns ``objs`` as cast to a list, in the same order as provided. -.. versionchanged:: 3.1 - - Support for the fetching primary key attributes on MariaDB 10.5+ was added. - ``bulk_update()`` ~~~~~~~~~~~~~~~~~ @@ -2742,11 +2734,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:: 3.1 - - Support for the ``'TREE'`` format on MySQL 8.0.16+ and ``analyze`` option - on MariaDB and MySQL 8.0.18+ were added. - .. _field-lookups: ``Field`` lookups @@ -3273,8 +3260,6 @@ in the database <database-time-zone-definitions>`. ``iso_week_day`` ~~~~~~~~~~~~~~~~ -.. versionadded:: 3.1 - For date and datetime fields, an exact ISO 8601 day of the week match. Allows chaining additional field lookups. diff --git a/docs/ref/models/relations.txt b/docs/ref/models/relations.txt index 1e81352c69..1c2591cc0c 100644 --- a/docs/ref/models/relations.txt +++ b/docs/ref/models/relations.txt @@ -75,10 +75,6 @@ Related objects reference dictionary and they will be evaluated once before creating any intermediate instance(s). - .. versionchanged:: 3.1 - - ``through_defaults`` values can now be callables. - .. method:: create(through_defaults=None, **kwargs) Creates a new object, saves it and puts it in the related object set. @@ -114,10 +110,6 @@ Related objects reference needed. You can use callables as values in the ``through_defaults`` dictionary. - .. versionchanged:: 3.1 - - ``through_defaults`` values can now be callables. - .. method:: remove(*objs, bulk=True) Removes the specified model objects from the related object set:: @@ -208,10 +200,6 @@ Related objects reference dictionary and they will be evaluated once before creating any intermediate instance(s). - .. versionchanged:: 3.1 - - ``through_defaults`` values can now be callables. - .. note:: Note that ``add()``, ``create()``, ``remove()``, ``clear()``, and |
