From 416c584cabd62a13985f1569ccf019c8b351f0a5 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 5 Sep 2019 15:07:12 +0200 Subject: Removed versionadded/changed annotations for 2.2. --- docs/ref/models/constraints.txt | 2 -- docs/ref/models/database-functions.txt | 8 -------- docs/ref/models/expressions.txt | 6 ------ docs/ref/models/indexes.txt | 4 ---- docs/ref/models/options.txt | 2 -- docs/ref/models/querysets.txt | 20 -------------------- docs/ref/models/relations.txt | 12 ------------ 7 files changed, 54 deletions(-) (limited to 'docs/ref/models') 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 ` 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 `_ 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 ` 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 `. ``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 ` 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 ` 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 ` instance(s), if needed. - .. versionchanged:: 2.2 - - The ``through_defaults`` argument was added. - .. note:: Note that ``add()``, ``create()``, ``remove()``, ``clear()``, and -- cgit v1.3