Removed versionadded/changed annotations for 2.2.

This commit is contained in:
Mariusz Felisiak 2019-09-05 15:07:12 +02:00
parent 32796826bb
commit 416c584cab
34 changed files with 0 additions and 221 deletions

View file

@ -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.

View file

@ -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.

View file

@ -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
-------------------------------------

View file

@ -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)``

View file

@ -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::

View file

@ -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
===================

View file

@ -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