diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-09-05 15:07:12 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-09-10 12:01:00 +0200 |
| commit | 416c584cabd62a13985f1569ccf019c8b351f0a5 (patch) | |
| tree | c1ecd8351300b1ddd8ad1bb79a374affd9e38108 /docs/ref/models | |
| parent | 32796826bb7bc5f6cdd9e8bd69be1c9eaa1e6cff (diff) | |
Removed versionadded/changed annotations for 2.2.
Diffstat (limited to 'docs/ref/models')
| -rw-r--r-- | docs/ref/models/constraints.txt | 2 | ||||
| -rw-r--r-- | docs/ref/models/database-functions.txt | 8 | ||||
| -rw-r--r-- | docs/ref/models/expressions.txt | 6 | ||||
| -rw-r--r-- | docs/ref/models/indexes.txt | 4 | ||||
| -rw-r--r-- | docs/ref/models/options.txt | 2 | ||||
| -rw-r--r-- | docs/ref/models/querysets.txt | 20 | ||||
| -rw-r--r-- | docs/ref/models/relations.txt | 12 |
7 files changed, 0 insertions, 54 deletions
diff --git a/docs/ref/models/constraints.txt b/docs/ref/models/constraints.txt index f6d1842c14..0ac54cf265 100644 --- a/docs/ref/models/constraints.txt +++ b/docs/ref/models/constraints.txt @@ -6,8 +6,6 @@ Constraints reference .. currentmodule:: django.db.models -.. versionadded:: 2.2 - The classes defined in this module create database constraints. They are added in the model :attr:`Meta.constraints <django.db.models.Options.constraints>` option. diff --git a/docs/ref/models/database-functions.txt b/docs/ref/models/database-functions.txt index 8dc84ca8e2..91e92453d4 100644 --- a/docs/ref/models/database-functions.txt +++ b/docs/ref/models/database-functions.txt @@ -154,8 +154,6 @@ will result in a database error. .. class:: NullIf(expression1, expression2) -.. versionadded:: 2.2 - Accepts two expressions and returns ``None`` if they are equal, otherwise returns ``expression1``. @@ -274,8 +272,6 @@ Usage example:: .. class:: ExtractIsoYear(expression, tzinfo=None, **extra) - .. versionadded:: 2.2 - Returns the ISO-8601 week-numbering year. .. attribute:: lookup_name = 'iso_year' @@ -716,8 +712,6 @@ that deal with time-parts can be used with ``TimeField``:: Math Functions ============== -.. versionadded:: 2.2 - We'll be using the following model in math function examples:: class Vector(models.Model): @@ -1419,8 +1413,6 @@ Usage example:: .. class:: Reverse(expression, **extra) -.. versionadded:: 2.2 - Accepts a single text field or expression and returns the characters of that expression in reverse order. diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt index 85cab15e8d..a8afd8c413 100644 --- a/docs/ref/models/expressions.txt +++ b/docs/ref/models/expressions.txt @@ -400,8 +400,6 @@ The ``Aggregate`` API is as follows: .. attribute:: allow_distinct - .. versionadded:: 2.2 - A class attribute determining whether or not this aggregate function allows passing a ``distinct`` keyword argument. If set to ``False`` (default), ``TypeError`` is raised if ``distinct=True`` is passed. @@ -435,10 +433,6 @@ and :ref:`filtering-on-annotations` for example usage. The ``**extra`` kwargs are ``key=value`` pairs that can be interpolated into the ``template`` attribute. -.. versionadded:: 2.2 - - The ``allow_distinct`` attribute and ``distinct`` argument were added. - Creating your own Aggregate Functions ------------------------------------- diff --git a/docs/ref/models/indexes.txt b/docs/ref/models/indexes.txt index 5909ee9c64..ae872605a1 100644 --- a/docs/ref/models/indexes.txt +++ b/docs/ref/models/indexes.txt @@ -90,8 +90,6 @@ in the same tablespace as the table. .. attribute:: Index.opclasses -.. versionadded:: 2.2 - The names of the `PostgreSQL operator classes <https://www.postgresql.org/docs/current/indexes-opclass.html>`_ to use for this index. If you require a custom operator class, you must provide one for @@ -110,8 +108,6 @@ opclasses=['jsonb_path_ops'])`` creates a gin index on ``jsonfield`` using .. attribute:: Index.condition -.. versionadded:: 2.2 - If the table is very large and your queries mostly target a subset of rows, it may be useful to restrict an index to that subset. Specify a condition as a :class:`~django.db.models.Q`. For example, ``condition=Q(pages__gt=400)`` diff --git a/docs/ref/models/options.txt b/docs/ref/models/options.txt index 275f077bc8..87f1e4b15c 100644 --- a/docs/ref/models/options.txt +++ b/docs/ref/models/options.txt @@ -459,8 +459,6 @@ Django quotes column and table names behind the scenes. .. attribute:: Options.constraints - .. versionadded:: 2.2 - A list of :doc:`constraints </ref/models/constraints>` that you want to define on the model:: diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index f9f84d9e5c..5de717d131 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -2091,15 +2091,9 @@ that fail constraints such as duplicate unique values. Enabling this parameter disables setting the primary key on each model instance (if the database normally supports it). -.. versionchanged:: 2.2 - - The ``ignore_conflicts`` parameter was added. - ``bulk_update()`` ~~~~~~~~~~~~~~~~~ -.. versionadded:: 2.2 - .. method:: bulk_update(objs, fields, batch_size=None) This method efficiently updates the given fields on the provided model @@ -2253,10 +2247,6 @@ psycopg mailing list <https://www.postgresql.org/message-id/4D2F2C71.8080805%40d between the number of rows transferred and the data discarded if the loop is exited early. -.. versionchanged:: 2.2 - - Support for result streaming on SQLite was added. - ``latest()`` ~~~~~~~~~~~~ @@ -3003,8 +2993,6 @@ in the database <database-time-zone-definitions>`. ``iso_year`` ~~~~~~~~~~~~ -.. versionadded:: 2.2 - For date and datetime fields, an exact ISO 8601 week-numbering year match. Allows chaining additional field lookups. Takes an integer year. @@ -3464,10 +3452,6 @@ by the aggregate. By default, ``StdDev`` returns the population standard deviation. However, if ``sample=True``, the return value will be the sample standard deviation. - .. versionchanged:: 2.2 - - SQLite support was added. - ``Sum`` ~~~~~~~ @@ -3508,10 +3492,6 @@ by the aggregate. By default, ``Variance`` returns the population variance. However, if ``sample=True``, the return value will be the sample variance. - .. versionchanged:: 2.2 - - SQLite support was added. - Query-related tools =================== diff --git a/docs/ref/models/relations.txt b/docs/ref/models/relations.txt index 67a6a41940..d50e3891dc 100644 --- a/docs/ref/models/relations.txt +++ b/docs/ref/models/relations.txt @@ -73,10 +73,6 @@ Related objects reference :ref:`intermediate model <intermediary-manytomany>` instance(s), if needed. - .. versionchanged:: 2.2 - - The ``through_defaults`` argument was added. - .. method:: create(through_defaults=None, **kwargs) Creates a new object, saves it and puts it in the related object set. @@ -111,10 +107,6 @@ Related objects reference :ref:`intermediate model <intermediary-manytomany>` instance, if needed. - .. versionchanged:: 2.2 - - The ``through_defaults`` argument was added. - .. method:: remove(*objs, bulk=True) Removes the specified model objects from the related object set:: @@ -203,10 +195,6 @@ Related objects reference :ref:`intermediate model <intermediary-manytomany>` instance(s), if needed. - .. versionchanged:: 2.2 - - The ``through_defaults`` argument was added. - .. note:: Note that ``add()``, ``create()``, ``remove()``, ``clear()``, and |
