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 | |
| parent | 32796826bb7bc5f6cdd9e8bd69be1c9eaa1e6cff (diff) | |
Removed versionadded/changed annotations for 2.2.
Diffstat (limited to 'docs/ref')
27 files changed, 0 insertions, 180 deletions
diff --git a/docs/ref/class-based-views/base.txt b/docs/ref/class-based-views/base.txt index 85e3c8bd4b..9645aa7a91 100644 --- a/docs/ref/class-based-views/base.txt +++ b/docs/ref/class-based-views/base.txt @@ -79,8 +79,6 @@ MRO is an acronym for Method Resolution Order. .. method:: setup(request, *args, **kwargs) - .. versionadded:: 2.2 - Initializes view instance attributes: ``self.request``, ``self.args``, and ``self.kwargs`` prior to :meth:`dispatch`. diff --git a/docs/ref/contrib/admin/admindocs.txt b/docs/ref/contrib/admin/admindocs.txt index 7779fe822a..1359111efd 100644 --- a/docs/ref/contrib/admin/admindocs.txt +++ b/docs/ref/contrib/admin/admindocs.txt @@ -55,10 +55,6 @@ system along with all the fields, properties, and methods available on it. Relationships to other models appear as hyperlinks. Descriptions are pulled from ``help_text`` attributes on fields or from docstrings on model methods. -.. versionchanged:: 2.2 - - Older versions don't display model properties. - A model with useful documentation might look like this:: class BlogEntry(models.Model): diff --git a/docs/ref/contrib/auth.txt b/docs/ref/contrib/auth.txt index d967d24927..b670fadb05 100644 --- a/docs/ref/contrib/auth.txt +++ b/docs/ref/contrib/auth.txt @@ -396,10 +396,6 @@ Fields Required. 150 characters or fewer. Any characters are permitted. Example: ``'Awesome Users'``. - .. versionchanged:: 2.2 - - The ``max_length`` increased from 80 to 150 characters. - .. attribute:: permissions Many-to-many field to :class:`~django.contrib.auth.models.Permission`:: @@ -677,11 +673,6 @@ The following backends are available in :mod:`django.contrib.auth.backends`: if it wasn't provided to :func:`~django.contrib.auth.authenticate` (which passes it on to the backend). - .. versionchanged:: 2.2 - - The ``request`` argument was added. Support for method overrides - that don't accept it will be removed in Django 3.1. - .. method:: user_can_authenticate() Returns whether the user is allowed to authenticate. This method diff --git a/docs/ref/contrib/gis/functions.txt b/docs/ref/contrib/gis/functions.txt index 0f50344ea4..7736323433 100644 --- a/docs/ref/contrib/gis/functions.txt +++ b/docs/ref/contrib/gis/functions.txt @@ -274,10 +274,6 @@ SDO_GEOM-reference.html#GUID-646638D0-2C5F-490A-AF63-DE9B7A4C97C1__CHDJCEIH>`__, Accepts a single geographic field or expression and returns the geometry representing the bounding box of the geometry. -.. versionchanged:: 2.2 - - Oracle support was added. - ``ForcePolygonCW`` ================== diff --git a/docs/ref/contrib/gis/geoquerysets.txt b/docs/ref/contrib/gis/geoquerysets.txt index ff9dccaa4d..ec34d85673 100644 --- a/docs/ref/contrib/gis/geoquerysets.txt +++ b/docs/ref/contrib/gis/geoquerysets.txt @@ -193,10 +193,6 @@ Example:: Zipcode.objects.filter(poly__coveredby=geom) -.. versionchanged:: 2.2 - - SpatiaLite support was added. - ========== ============================= Backend SQL Equivalent ========== ============================= @@ -220,10 +216,6 @@ Example:: Zipcode.objects.filter(poly__covers=geom) -.. versionchanged:: 2.2 - - SpatiaLite support was added. - ========== ========================== Backend SQL Equivalent ========== ========================== diff --git a/docs/ref/contrib/postgres/aggregates.txt b/docs/ref/contrib/postgres/aggregates.txt index c70b6ec3b3..ad07090688 100644 --- a/docs/ref/contrib/postgres/aggregates.txt +++ b/docs/ref/contrib/postgres/aggregates.txt @@ -39,8 +39,6 @@ General-purpose aggregation functions .. attribute:: ordering - .. versionadded:: 2.2 - An optional string of a field name (with an optional ``"-"`` prefix which indicates descending order) or an expression (or a tuple or list of strings and/or expressions) that specifies the ordering of the @@ -111,8 +109,6 @@ General-purpose aggregation functions .. attribute:: ordering - .. versionadded:: 2.2 - An optional string of a field name (with an optional ``"-"`` prefix which indicates descending order) or an expression (or a tuple or list of strings and/or expressions) that specifies the ordering of the diff --git a/docs/ref/contrib/postgres/fields.txt b/docs/ref/contrib/postgres/fields.txt index 5ae5a2e2ce..aa4d797162 100644 --- a/docs/ref/contrib/postgres/fields.txt +++ b/docs/ref/contrib/postgres/fields.txt @@ -656,8 +656,6 @@ excluded; that is, ``[)``. .. class:: DecimalRangeField(**options) - .. versionadded:: 2.2 - Stores a range of floating point values. Based on a :class:`~django.db.models.DecimalField`. Represented by a ``numrange`` in the database and a :class:`~psycopg2:psycopg2.extras.NumericRange` in diff --git a/docs/ref/contrib/postgres/forms.txt b/docs/ref/contrib/postgres/forms.txt index bb78e5bc05..2f60c7e913 100644 --- a/docs/ref/contrib/postgres/forms.txt +++ b/docs/ref/contrib/postgres/forms.txt @@ -197,8 +197,6 @@ not greater than the upper bound. All of these fields use .. class:: DecimalRangeField - .. versionadded:: 2.2 - Based on :class:`~django.forms.DecimalField` and translates its input into :class:`~psycopg2:psycopg2.extras.NumericRange`. Default for :class:`~django.contrib.postgres.fields.DecimalRangeField`. diff --git a/docs/ref/contrib/postgres/indexes.txt b/docs/ref/contrib/postgres/indexes.txt index 25b301b4da..3c5ff89c67 100644 --- a/docs/ref/contrib/postgres/indexes.txt +++ b/docs/ref/contrib/postgres/indexes.txt @@ -22,17 +22,11 @@ available from the ``django.contrib.postgres.indexes`` module. .. _automatic summarization: https://www.postgresql.org/docs/current/brin-intro.html#BRIN-OPERATION - .. versionchanged:: 2.2 - - The ``autosummarize`` parameter was added. - ``BTreeIndex`` ============== .. class:: BTreeIndex(fillfactor=None, **options) - .. versionadded:: 2.2 - Creates a B-Tree index. Provide an integer value from 10 to 100 to the fillfactor_ parameter to @@ -100,8 +94,6 @@ available from the ``django.contrib.postgres.indexes`` module. .. class:: HashIndex(fillfactor=None, **options) - .. versionadded:: 2.2 - Creates a hash index. Provide an integer value from 10 to 100 to the fillfactor_ parameter to @@ -119,8 +111,6 @@ available from the ``django.contrib.postgres.indexes`` module. .. class:: SpGistIndex(fillfactor=None, **options) - .. versionadded:: 2.2 - Creates an `SP-GiST index <https://www.postgresql.org/docs/current/spgist.html>`_. diff --git a/docs/ref/contrib/postgres/search.txt b/docs/ref/contrib/postgres/search.txt index 367171d128..c78183cd01 100644 --- a/docs/ref/contrib/postgres/search.txt +++ b/docs/ref/contrib/postgres/search.txt @@ -102,10 +102,6 @@ Search docs`_ to learn about differences and syntax. Examples: See :ref:`postgresql-fts-search-configuration` for an explanation of the ``config`` parameter. -.. versionadded:: 2.2 - - The `search_type` parameter was added. - ``SearchRank`` ============== diff --git a/docs/ref/contrib/sitemaps.txt b/docs/ref/contrib/sitemaps.txt index 0dc4d48bd5..fa2793c1da 100644 --- a/docs/ref/contrib/sitemaps.txt +++ b/docs/ref/contrib/sitemaps.txt @@ -499,11 +499,6 @@ that: :func:`django.contrib.sitemaps.ping_google()`. ``django.contrib.sitemaps.SitemapNotFound`` if it cannot determine your sitemap URL. - .. versionadded:: 2.2 - - The ``sitemap_uses_https`` argument was added. Older versions of - Django always use ``http`` for a sitemap's URL. - .. admonition:: Register with Google first! The :func:`ping_google` command only works if you have registered your @@ -544,6 +539,4 @@ ping Google using the ``ping_google`` management command:: .. django-admin-option:: --sitemap-uses-http -.. versionadded:: 2.2 - Use this option if your sitemap uses ``http`` rather than ``https``. diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt index 6fb6f55a0b..6393e3a7d4 100644 --- a/docs/ref/contrib/staticfiles.txt +++ b/docs/ref/contrib/staticfiles.txt @@ -96,10 +96,6 @@ Some commonly used options are: multiple times to ignore more. When specifying a path, always use forward slashes, even on Windows. - .. versionchanged:: 2.2 - - Path matching was added. - .. django-admin-option:: --dry-run, -n Do everything except modify the filesystem. diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index eaba4d437d..1e9144b985 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -421,18 +421,12 @@ PostgreSQL * Models are created for partition tables if :option:`--include-partitions` is used. -.. versionchanged:: 2.2 - - Support for foreign tables and materialized views was added. - .. django-admin-option:: --database DATABASE Specifies the database to introspect. Defaults to ``default``. .. django-admin-option:: --include-partitions -.. versionadded:: 2.2 - If this option is provided, models are also created for partitions. Only support for PostgreSQL is implemented. @@ -783,8 +777,6 @@ name must be a valid Python :ref:`identifier <python:identifiers>`. .. django-admin-option:: --no-header -.. versionadded:: 2.2 - Generate migration files without Django version and timestamp header. .. django-admin-option:: --check @@ -841,8 +833,6 @@ schema matches what is recorded in your initial migration. .. django-admin-option:: --plan -.. versionadded:: 2.2 - Shows the migration operations that will be performed for the given ``migrate`` command. @@ -907,10 +897,6 @@ more robust change detection, and a reduction in power usage. Django supports .. _pywatchman: https://pypi.org/project/pywatchman/ .. _watchman documentation: https://facebook.github.io/watchman/docs/config.html#ignore_dirs -.. versionchanged:: 2.2 - - Watchman support replaced support for `pyinotify`. - When you start the server, and each time you change Python code while the server is running, the system check framework will check your entire Django project for some common errors (see the :djadmin:`check` command). If any @@ -1193,8 +1179,6 @@ first and last migration, with ``_squashed_`` in between. .. django-admin-option:: --no-header -.. versionadded:: 2.2 - Generate squashed migration file without Django version and timestamp header. ``startapp`` @@ -1762,8 +1746,6 @@ Example usage:: .. django-admin-option:: --force-color -.. versionadded:: 2.2 - Forces colorization of the command output if it would otherwise be disabled as discussed in :ref:`syntax-coloring`. For example, you may want to pipe colored output to another command. diff --git a/docs/ref/migration-operations.txt b/docs/ref/migration-operations.txt index b5201b3219..cbb76f79f7 100644 --- a/docs/ref/migration-operations.txt +++ b/docs/ref/migration-operations.txt @@ -212,8 +212,6 @@ Removes the index named ``name`` from the model with ``model_name``. .. class:: AddConstraint(model_name, constraint) -.. versionadded:: 2.2 - Creates a :doc:`constraint </ref/models/constraints>` in the database table for the model with ``model_name``. @@ -222,8 +220,6 @@ the model with ``model_name``. .. class:: RemoveConstraint(model_name, name) -.. versionadded:: 2.2 - Removes the constraint named ``name`` from the model with ``model_name``. Special Operations 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 diff --git a/docs/ref/request-response.txt b/docs/ref/request-response.txt index 3dfbf28cf6..72cef1068f 100644 --- a/docs/ref/request-response.txt +++ b/docs/ref/request-response.txt @@ -172,8 +172,6 @@ All attributes should be considered read-only, unless stated otherwise. .. attribute:: HttpRequest.headers - .. versionadded:: 2.2 - A case insensitive, dict-like object that provides access to all HTTP-prefixed headers (plus ``Content-Length`` and ``Content-Type``) from the request. diff --git a/docs/ref/schema-editor.txt b/docs/ref/schema-editor.txt index a80d45c573..b19ded7d48 100644 --- a/docs/ref/schema-editor.txt +++ b/docs/ref/schema-editor.txt @@ -86,8 +86,6 @@ Removes ``index`` from ``model``’s table. .. method:: BaseDatabaseSchemaEditor.add_constraint(model, constraint) -.. versionadded:: 2.2 - Adds ``constraint`` to ``model``'s table. ``remove_constraint()`` @@ -95,8 +93,6 @@ Adds ``constraint`` to ``model``'s table. .. method:: BaseDatabaseSchemaEditor.remove_constraint(model, constraint) -.. versionadded:: 2.2 - Removes ``constraint`` from ``model``'s table. ``alter_unique_together()`` diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index 1ec8e9d94c..622baa8376 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -846,8 +846,6 @@ when running tests. If not provided, Django will generate a random password. ``ORACLE_MANAGED_FILES`` ^^^^^^^^^^^^^^^^^^^^^^^^ -.. versionadded:: 2.2 - Default: ``False`` This is an Oracle-specific setting. diff --git a/docs/ref/urlresolvers.txt b/docs/ref/urlresolvers.txt index 5da5426923..745ee9d6fd 100644 --- a/docs/ref/urlresolvers.txt +++ b/docs/ref/urlresolvers.txt @@ -132,8 +132,6 @@ If the URL does not resolve, the function raises a .. attribute:: ResolverMatch.route - .. versionadded:: 2.2 - The route of the matching URL pattern. For example, if ``path('users/<id>/', ...)`` is the matching pattern, diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index 1a0c36dc43..06a9506ec9 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -141,11 +141,6 @@ The functions defined in this module share the following properties: UTC offsets are supported; if ``value`` describes one, the result's ``tzinfo`` attribute is a :class:`datetime.timezone` instance. - .. versionchanged:: 2.2 - - In older versions, the ``tzinfo`` attribute is a - :class:`~django.utils.timezone.FixedOffset` instance. - .. function:: parse_duration(value) Parses a string and returns a :class:`datetime.timedelta`. @@ -503,11 +498,6 @@ https://web.archive.org/web/20110718035220/http://diveintomark.org/archives/2004 You only need the ``name`` argument for Python < 3.6 support. - .. versionchanged:: 2.2 - - Older versions of Django require the ``name`` argument for all versions - of Python. - While ``person.get_friends()`` will recompute the friends on each call, the value of the cached property will persist until you delete it as described above:: @@ -721,19 +711,11 @@ escaping HTML. Encodes a bytestring to a base64 string for use in URLs, stripping any trailing equal signs. - .. versionchanged:: 2.2 - - In older versions, it returns a bytestring instead of a string. - .. function:: urlsafe_base64_decode(s) Decodes a base64 encoded string, adding back any trailing equal signs that might have been stripped. - .. versionchanged:: 2.2 - - In older versions, ``s`` may be a bytestring. - ``django.utils.module_loading`` =============================== diff --git a/docs/ref/validators.txt b/docs/ref/validators.txt index b6a233014d..4fd2a37cbc 100644 --- a/docs/ref/validators.txt +++ b/docs/ref/validators.txt @@ -239,10 +239,6 @@ to, or in lieu of custom ``field.clean()`` methods. ``'max_value'`` if ``value`` is greater than ``limit_value``, which may be a callable. - .. versionchanged:: 2.2 - - ``limit_value`` can now be a callable. - ``MinValueValidator`` --------------------- @@ -252,10 +248,6 @@ to, or in lieu of custom ``field.clean()`` methods. ``'min_value'`` if ``value`` is less than ``limit_value``, which may be a callable. - .. versionchanged:: 2.2 - - ``limit_value`` can now be a callable. - ``MaxLengthValidator`` ---------------------- @@ -265,10 +257,6 @@ to, or in lieu of custom ``field.clean()`` methods. ``'max_length'`` if the length of ``value`` is greater than ``limit_value``, which may be a callable. - .. versionchanged:: 2.2 - - ``limit_value`` can now be a callable. - ``MinLengthValidator`` ---------------------- @@ -278,10 +266,6 @@ to, or in lieu of custom ``field.clean()`` methods. ``'min_length'`` if the length of ``value`` is less than ``limit_value``, which may be a callable. - .. versionchanged:: 2.2 - - ``limit_value`` can now be a callable. - ``DecimalValidator`` -------------------- |
