diff --git a/docs/ref/class-based-views/mixins-simple.txt b/docs/ref/class-based-views/mixins-simple.txt index 012d5097163..2d1bbdeb57f 100644 --- a/docs/ref/class-based-views/mixins-simple.txt +++ b/docs/ref/class-based-views/mixins-simple.txt @@ -11,8 +11,6 @@ Simple mixins .. attribute:: extra_context - .. versionadded:: 2.0 - A dictionary to include in the context. This is a convenient way of specifying some simple context in :meth:`~django.views.generic.base.View.as_view`. Example usage:: diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 9b0a7cc8a4f..b4df066e15e 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -1102,8 +1102,6 @@ subclass:: .. attribute:: ModelAdmin.autocomplete_fields - .. versionadded:: 2.0 - ``autocomplete_fields`` is a list of ``ForeignKey`` and/or ``ManyToManyField`` fields you would like to change to `Select2 `_ autocomplete inputs. @@ -1525,8 +1523,6 @@ templates used by the :class:`ModelAdmin` views: .. method:: ModelAdmin.get_autocomplete_fields(request) - .. versionadded:: 2.0 - The ``get_autocomplete_fields()`` method is given the ``HttpRequest`` and is expected to return a ``list`` or ``tuple`` of field names that will be displayed with an autocomplete widget as described above in the diff --git a/docs/ref/contrib/auth.txt b/docs/ref/contrib/auth.txt index 2b1aa9ae087..62516a94d25 100644 --- a/docs/ref/contrib/auth.txt +++ b/docs/ref/contrib/auth.txt @@ -51,10 +51,6 @@ Fields Optional (:attr:`blank=True `). 150 characters or fewer. - .. versionchanged:: 2.0 - - The ``max_length`` increased from 30 to 150 characters. - .. attribute:: email Optional (:attr:`blank=True `). Email diff --git a/docs/ref/contrib/gis/forms-api.txt b/docs/ref/contrib/gis/forms-api.txt index ea48edb54a7..8891e0211ed 100644 --- a/docs/ref/contrib/gis/forms-api.txt +++ b/docs/ref/contrib/gis/forms-api.txt @@ -179,8 +179,6 @@ Widget classes .. attribute:: default_zoom - .. versionadded:: 2.0 - The default map zoom is ``12``. The :class:`OpenLayersWidget` note about JavaScript file hosting above also diff --git a/docs/ref/contrib/gis/functions.txt b/docs/ref/contrib/gis/functions.txt index 47ab21bfa3c..3a6a75d4c49 100644 --- a/docs/ref/contrib/gis/functions.txt +++ b/docs/ref/contrib/gis/functions.txt @@ -82,10 +82,6 @@ Keyword Argument Description representation -- the default value is 8. ===================== ===================================================== -.. versionchanged:: 2.0 - - MySQL support was added. - ``AsGML`` ========= @@ -172,8 +168,6 @@ __ https://www.w3.org/Graphics/SVG/ .. class:: Azimuth(point_a, point_b, **extra) -.. versionadded:: 2.0 - *Availability*: `PostGIS `__, SpatiaLite (LWGEOM) @@ -323,10 +317,6 @@ representation of the geometry. The ``precision`` keyword argument controls the number of characters in the result. -.. versionchanged:: 2.0 - - MySQL support was added. - __ https://en.wikipedia.org/wiki/Geohash ``Intersection`` @@ -353,10 +343,6 @@ intersection between them. Accepts a geographic field or expression and tests if the value is well formed. Returns ``True`` if its value is a valid geometry and ``False`` otherwise. -.. versionchanged:: 2.0 - - MySQL support was added. - ``Length`` ========== @@ -382,8 +368,6 @@ MySQL doesn't support length calculations on geographic SRSes. .. class:: LineLocatePoint(linestring, point, **extra) -.. versionadded:: 2.0 - *Availability*: `PostGIS `__, SpatiaLite diff --git a/docs/ref/contrib/gis/gdal.txt b/docs/ref/contrib/gis/gdal.txt index 002afb96215..392c4e47f76 100644 --- a/docs/ref/contrib/gis/gdal.txt +++ b/docs/ref/contrib/gis/gdal.txt @@ -1160,12 +1160,6 @@ blue. >>> rst.name # Stored in a random path in the vsimem filesystem. '/vsimem/da300bdb-129d-49a8-b336-e410a9428dad' - .. versionchanged:: 2.0 - - Added the ability to read and write rasters in GDAL's memory-based - virtual filesystem. ``GDALRaster`` objects can now be converted to and - from binary data in-memory. - .. attribute:: name The name of the source which is equivalent to the input file path or the name @@ -1406,8 +1400,6 @@ blue. .. attribute:: info - .. versionadded:: 2.0 - Returns a string with a summary of the raster. This is equivalent to the `gdalinfo`__ command line utility. @@ -1415,8 +1407,6 @@ blue. .. attribute:: metadata - .. versionadded:: 2.0 - The metadata of this raster, represented as a nested dictionary. The first-level key is the metadata domain. The second-level contains the metadata item names and values from each domain. @@ -1440,15 +1430,11 @@ blue. .. attribute:: vsi_buffer - .. versionadded:: 2.0 - A ``bytes`` representation of this raster. Returns ``None`` for rasters that are not stored in GDAL's virtual filesystem. .. attribute:: is_vsi_based - .. versionadded:: 2.0 - A boolean indicating if this raster is stored in GDAL's virtual filesystem. @@ -1542,8 +1528,6 @@ blue. .. method:: color_interp(as_string=False) - .. versionadded:: 2.0 - The color interpretation for the band, as an integer between 0and 16. If ``as_string`` is ``True``, the data type is returned as a string with the following possible values: @@ -1618,8 +1602,6 @@ blue. .. attribute:: metadata - .. versionadded:: 2.0 - The metadata of this band. The functionality is identical to :attr:`GDALRaster.metadata`. @@ -1721,8 +1703,6 @@ Key Default Usage .. object:: papsz_options - .. versionadded:: 2.0 - A dictionary with raster creation options. The key-value pairs of the input dictionary are passed to the driver on creation of the raster. diff --git a/docs/ref/contrib/gis/geoquerysets.txt b/docs/ref/contrib/gis/geoquerysets.txt index dfc86c4efb1..a8f7e272771 100644 --- a/docs/ref/contrib/gis/geoquerysets.txt +++ b/docs/ref/contrib/gis/geoquerysets.txt @@ -322,10 +322,6 @@ MySQL, PostGIS, SpatiaLite ``ST_IsValid(poly)`` Oracle ``SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT(poly, 0.05) = 'TRUE'`` ========================== ================================================================ -.. versionchanged:: 2.0 - - MySQL support was added. - .. fieldlookup:: overlaps ``overlaps`` @@ -631,10 +627,6 @@ simpler `ST_Distance `__ function is used with projected coordinate systems. Rasters are converted to geometries for spheroid based lookups. -.. versionadded:: 2.0 - - MySQL support was added. - .. fieldlookup:: distance_gt ``distance_gt`` diff --git a/docs/ref/contrib/gis/geos.txt b/docs/ref/contrib/gis/geos.txt index 4fc660fd951..92a6ad86bbd 100644 --- a/docs/ref/contrib/gis/geos.txt +++ b/docs/ref/contrib/gis/geos.txt @@ -203,13 +203,6 @@ The ``srid`` parameter, if given, is set as the SRID of the created geometry if ... ValueError: Input geometry already has SRID: 1. -.. versionchanged:: 2.0 - - In older versions, the ``srid`` parameter is handled differently for WKT - and WKB input. For WKT, ``srid`` is used only if the input geometry doesn't - have an SRID. For WKB, ``srid`` (if given) replaces the SRID of the input - geometry. - The following input formats, along with their corresponding Python types, are accepted: @@ -225,10 +218,6 @@ GeoJSON_ ``str`` For the GeoJSON format, the SRID is set based on the ``crs`` member. If ``crs`` isn't provided, the SRID defaults to 4326. -.. versionchanged:: 2.0 - - In older versions, SRID isn't set for geometries initialized from GeoJSON. - .. _GeoJSON: https://tools.ietf.org/html/rfc7946 .. classmethod:: GEOSGeometry.from_gml(gml_string) diff --git a/docs/ref/contrib/postgres/aggregates.txt b/docs/ref/contrib/postgres/aggregates.txt index 43b4e3f44bb..480c230c40c 100644 --- a/docs/ref/contrib/postgres/aggregates.txt +++ b/docs/ref/contrib/postgres/aggregates.txt @@ -28,8 +28,6 @@ General-purpose aggregation functions .. attribute:: distinct - .. versionadded:: 2.0 - An optional boolean argument that determines if array values will be distinct. Defaults to ``False``. diff --git a/docs/ref/contrib/postgres/functions.txt b/docs/ref/contrib/postgres/functions.txt index 8d3df51864c..3b98e573e7f 100644 --- a/docs/ref/contrib/postgres/functions.txt +++ b/docs/ref/contrib/postgres/functions.txt @@ -12,8 +12,6 @@ All of these functions are available from the .. class:: RandomUUID() -.. versionadded:: 2.0 - Returns a version 4 UUID. The `pgcrypto extension`_ must be installed. You can use the diff --git a/docs/ref/contrib/postgres/indexes.txt b/docs/ref/contrib/postgres/indexes.txt index 0ab69202419..e7c681e6ba4 100644 --- a/docs/ref/contrib/postgres/indexes.txt +++ b/docs/ref/contrib/postgres/indexes.txt @@ -43,17 +43,11 @@ available from the ``django.contrib.postgres.indexes`` module. .. _GIN Fast Update Technique: https://www.postgresql.org/docs/current/static/gin-implementation.html#GIN-FAST-UPDATE .. _gin_pending_list_limit: https://www.postgresql.org/docs/current/static/runtime-config-client.html#GUC-GIN-PENDING-LIST-LIMIT - .. versionchanged:: 2.0 - - The ``fastupdate`` and ``gin_pending_list_limit`` parameters were added. - ``GistIndex`` ============= .. class:: GistIndex(buffering=None, fillfactor=None, **options) - .. versionadded:: 2.0 - Creates a `GiST index `_. These indexes are automatically created on spatial fields with :attr:`spatial_index=True diff --git a/docs/ref/contrib/postgres/operations.txt b/docs/ref/contrib/postgres/operations.txt index 4ddd790bd5f..c56693478f5 100644 --- a/docs/ref/contrib/postgres/operations.txt +++ b/docs/ref/contrib/postgres/operations.txt @@ -61,8 +61,6 @@ run the query ``CREATE EXTENSION IF NOT EXISTS hstore;``. .. class:: BtreeGistExtension() - .. versionadded:: 2.0 - Install the ``btree_gist`` extension. ``CITextExtension`` @@ -77,8 +75,6 @@ run the query ``CREATE EXTENSION IF NOT EXISTS hstore;``. .. class:: CryptoExtension() - .. versionadded:: 2.0 - Installs the ``pgcrypto`` extension. ``HStoreExtension`` diff --git a/docs/ref/contrib/sitemaps.txt b/docs/ref/contrib/sitemaps.txt index dd720a8bb07..21ed6848e44 100644 --- a/docs/ref/contrib/sitemaps.txt +++ b/docs/ref/contrib/sitemaps.txt @@ -273,10 +273,6 @@ The sitemap framework provides a convenience class for a common case: and :attr:`~Sitemap.protocol` keyword arguments allow specifying these attributes for all URLs. - .. versionadded:: 2.0 - - The ``protocol`` keyword argument was added. - Example ------- diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index 42743f36ccc..8620db3c275 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -490,12 +490,6 @@ or ``None`` to use the server's configured isolation level. However, Django works best with and defaults to read committed rather than MySQL's default, repeatable read. Data loss is possible with repeatable read. -.. versionchanged:: 2.0 - - In older versions, the MySQL database backend defaults to using the - database's isolation level (which defaults to repeatable read) rather - than read committed. - .. _transaction isolation level: https://dev.mysql.com/doc/refman/en/innodb-transaction-isolation-levels.html Creating your tables diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 3464fdbe379..4916a8c623b 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -240,8 +240,6 @@ compare against Django's default settings. .. django-admin-option:: --output {hash,unified} -.. versionadded:: 2.0 - Specifies the output format. Available values are ``hash`` and ``unified``. ``hash`` is the default mode that displays the output that's described above. ``unified`` displays the output similar to ``diff -u``. Default settings are @@ -437,8 +435,6 @@ Specifies a single app to look for fixtures in rather than looking in all apps. .. django-admin-option:: --format FORMAT -.. versionadded:: 2.0 - Specifies the :ref:`serialization format ` (e.g., ``json`` or ``xml``) for fixtures :ref:`read from stdin `. @@ -582,8 +578,6 @@ specify you want to load data into the ``master`` database. Loading fixtures from ``stdin`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. versionadded:: 2.0 - You can use a dash as the fixture name to load input from ``sys.stdin``. For example:: @@ -695,8 +689,6 @@ understand each message's context. .. django-admin-option:: --add-location [{full,file,never}] -.. versionadded:: 2.0 - Controls ``#: filename:line`` comment lines in language files. If the option is: @@ -1130,8 +1122,6 @@ Suppresses all user prompts. .. django-admin-option:: --squashed-name SQUASHED_NAME -.. versionadded:: 2.0 - Sets the name of the squashed migration. When omitted, the name is based on the first and last migration, with ``_squashed_`` in between. diff --git a/docs/ref/files/file.txt b/docs/ref/files/file.txt index 5039102fae9..a441fd9d906 100644 --- a/docs/ref/files/file.txt +++ b/docs/ref/files/file.txt @@ -58,10 +58,6 @@ The ``File`` class It can be used as a context manager, e.g. ``with file.open() as f:``. - .. versionchanged:: 2.0 - - Context manager support was added. - .. method:: __iter__() Iterate over the file yielding one line at a time. diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt index bafa688f984..3b0db3a79af 100644 --- a/docs/ref/forms/api.txt +++ b/docs/ref/forms/api.txt @@ -167,8 +167,6 @@ directly in HTML. .. method:: Form.errors.get_json_data(escape_html=False) -.. versionadded:: 2.0 - Returns the errors as a dictionary suitable for serializing to JSON. :meth:`Form.errors.as_json()` returns serialized JSON, while this returns the error data before it's serialized. diff --git a/docs/ref/forms/widgets.txt b/docs/ref/forms/widgets.txt index 44752731378..40f9e52f65f 100644 --- a/docs/ref/forms/widgets.txt +++ b/docs/ref/forms/widgets.txt @@ -878,8 +878,6 @@ Composite widgets .. attribute:: SplitDateTimeWidget.date_attrs .. attribute:: SplitDateTimeWidget.time_attrs - .. versionadded:: 2.0 - Similar to :attr:`Widget.attrs`. A dictionary containing HTML attributes to be set on the rendered :class:`DateInput` and :class:`TimeInput` widgets, respectively. If these attributes aren't diff --git a/docs/ref/models/database-functions.txt b/docs/ref/models/database-functions.txt index 494c175843a..d39ed5001b2 100644 --- a/docs/ref/models/database-functions.txt +++ b/docs/ref/models/database-functions.txt @@ -178,10 +178,6 @@ Django usually uses the databases' extract function, so you may use any ``lookup_name`` that your database supports. A ``tzinfo`` subclass, usually provided by ``pytz``, can be passed to extract a value in a specific timezone. -.. versionchanged:: 2.0 - - Support for ``DurationField`` was added. - Given the datetime ``2015-06-15 23:30:01.000321+00:00``, the built-in ``lookup_name``\s return: @@ -274,8 +270,6 @@ Usage example:: .. class:: ExtractQuarter(expression, tzinfo=None, **extra) - .. versionadded:: 2.0 - .. attribute:: lookup_name = 'quarter' These are logically equivalent to ``Extract('date_field', lookup_name)``. Each @@ -517,8 +511,6 @@ Usage example:: .. class:: TruncQuarter(expression, output_field=None, tzinfo=None, **extra) - .. versionadded:: 2.0 - .. attribute:: kind = 'quarter' These are logically equivalent to ``Trunc('date_field', kind)``. They truncate @@ -938,8 +930,6 @@ spaces. .. class:: StrIndex(string, substring, **extra) -.. versionadded:: 2.0 - Returns a positive integer corresponding to the 1-indexed position of the first occurrence of ``substring`` inside ``string``, or 0 if ``substring`` is not found. @@ -1028,8 +1018,6 @@ Usage example:: Window functions ================ -.. versionadded:: 2.0 - There are a number of functions to use in a :class:`~django.db.models.expressions.Window` expression for computing the rank of elements or the :class:`Ntile` of some rows. diff --git a/docs/ref/models/expressions.txt b/docs/ref/models/expressions.txt index a929e8a98f4..fe4dc2c5253 100644 --- a/docs/ref/models/expressions.txt +++ b/docs/ref/models/expressions.txt @@ -388,8 +388,6 @@ The ``Aggregate`` API is as follows: .. attribute:: window_compatible - .. versionadded:: 2.0 - Defaults to ``True`` since most aggregate functions can be used as the source expression in :class:`~django.db.models.expressions.Window`. @@ -417,10 +415,6 @@ and :ref:`filtering-on-annotations` for example usage. The ``**extra`` kwargs are ``key=value`` pairs that can be interpolated into the ``template`` attribute. -.. versionchanged:: 2.0 - - The ``filter`` argument was added. - Creating your own Aggregate Functions ------------------------------------- @@ -694,8 +688,6 @@ should avoid them if possible. Window functions ---------------- -.. versionadded:: 2.0 - Window functions provide a way to apply functions on partitions. Unlike a normal aggregation function which computes a final result for each set defined by the group by, window functions operate on :ref:`frames ` and @@ -902,8 +894,6 @@ calling the appropriate methods on the wrapped expression. .. attribute:: contains_over_clause - .. versionadded:: 2.0 - Tells Django that this expression contains a :class:`~django.db.models.expressions.Window` expression. It's used, for example, to disallow window function expressions in queries that @@ -911,15 +901,11 @@ calling the appropriate methods on the wrapped expression. .. attribute:: filterable - .. versionadded:: 2.0 - Tells Django that this expression can be referenced in :meth:`.QuerySet.filter`. Defaults to ``True``. .. attribute:: window_compatible - .. versionadded:: 2.0 - Tells Django that this expression can be used as the source expression in :class:`~django.db.models.expressions.Window`. Defaults to ``False``. diff --git a/docs/ref/models/indexes.txt b/docs/ref/models/indexes.txt index 5cb4f4ea2f7..a78423bd361 100644 --- a/docs/ref/models/indexes.txt +++ b/docs/ref/models/indexes.txt @@ -58,8 +58,6 @@ than 30 characters and shouldn't start with a number (0-9) or underscore (_). .. attribute:: Index.db_tablespace -.. versionadded:: 2.0 - The name of the :doc:`database tablespace ` to use for this index. For single field indexes, if ``db_tablespace`` isn't provided, the index is created in the ``db_tablespace`` of the field. diff --git a/docs/ref/models/options.txt b/docs/ref/models/options.txt index 51a87fc632e..cea73eb67fc 100644 --- a/docs/ref/models/options.txt +++ b/docs/ref/models/options.txt @@ -147,10 +147,6 @@ Django quotes column and table names behind the scenes. See the :meth:`~django.db.models.query.QuerySet.latest` docs for more. - .. versionchanged:: 2.0 - - Support for a list of fields was added. - ``managed`` ----------- @@ -291,10 +287,6 @@ Django quotes column and table names behind the scenes. Default ordering also affects :ref:`aggregation queries `. - .. versionchanged:: 2.0 - - Support for query expressions was added. - .. warning:: Ordering is not a free operation. Each field you add to the ordering diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index b2f430d7bc5..06f153fb8e2 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -712,10 +712,6 @@ not having any author:: >>> Entry.objects.values_list('authors') -.. versionchanged:: 2.0 - - The ``named`` parameter was added. - ``dates()`` ~~~~~~~~~~~ @@ -1737,10 +1733,6 @@ raised if ``select_for_update()`` is used in autocommit mode. PostgreSQL doesn't support ``select_for_update()`` with :class:`~django.db.models.expressions.Window` expressions. -.. versionchanged:: 2.0 - - The ``of`` argument was added. - ``raw()`` ~~~~~~~~~ @@ -2099,10 +2091,6 @@ Example:: If you pass ``in_bulk()`` an empty list, you'll get an empty dictionary. -.. versionchanged:: 2.0 - - The ``field_name`` parameter was added. - ``iterator()`` ~~~~~~~~~~~~~~ @@ -2167,10 +2155,6 @@ psycopg mailing list `. ``quarter`` ~~~~~~~~~~~ -.. versionadded:: 2.0 - For date and datetime fields, a 'quarter of the year' match. Allows chaining additional field lookups. Takes an integer value between 1 and 4 representing the quarter of the year. @@ -3216,8 +3194,6 @@ of the return value ``filter`` ~~~~~~~~~~ -.. versionadded:: 2.0 - An optional :class:`Q object ` that's used to filter the rows that are aggregated. @@ -3428,8 +3404,6 @@ lookups or :class:`Prefetch` objects you want to prefetch for. For example:: ``FilteredRelation()`` objects ------------------------------ -.. versionadded:: 2.0 - .. class:: FilteredRelation(relation_name, *, condition=Q()) .. attribute:: FilteredRelation.relation_name diff --git a/docs/ref/settings.txt b/docs/ref/settings.txt index 635cadc848a..de2651aa82b 100644 --- a/docs/ref/settings.txt +++ b/docs/ref/settings.txt @@ -911,8 +911,6 @@ The maximum size that the DATAFILE_TMP is allowed to grow to. ``DATAFILE_SIZE`` ^^^^^^^^^^^^^^^^^ -.. versionadded:: 2.0 - Default: ``'50M'`` This is an Oracle-specific setting. @@ -924,8 +922,6 @@ The initial size of the DATAFILE. ``DATAFILE_TMP_SIZE`` ^^^^^^^^^^^^^^^^^^^^^ -.. versionadded:: 2.0 - Default: ``'50M'`` This is an Oracle-specific setting. @@ -937,8 +933,6 @@ The initial size of the DATAFILE_TMP. ``DATAFILE_EXTSIZE`` ^^^^^^^^^^^^^^^^^^^^ -.. versionadded:: 2.0 - Default: ``'25M'`` This is an Oracle-specific setting. @@ -950,8 +944,6 @@ The amount by which the DATAFILE is extended when more space is required. ``DATAFILE_TMP_EXTSIZE`` ^^^^^^^^^^^^^^^^^^^^^^^^ -.. versionadded:: 2.0 - Default: ``'25M'`` This is an Oracle-specific setting. diff --git a/docs/ref/templates/api.txt b/docs/ref/templates/api.txt index 6ce34b0b203..986e7e93612 100644 --- a/docs/ref/templates/api.txt +++ b/docs/ref/templates/api.txt @@ -149,12 +149,6 @@ what's passed by :class:`~django.template.backends.django.DjangoTemplates`. It's required for preserving APIs that rely on a globally available, implicitly configured engine. Any other use is strongly discouraged. - .. versionchanged:: 2.0 - - In older versions, raises - :exc:`~django.core.exceptions.ImproperlyConfigured` if multiple - engines are configured rather than returning the first engine. - .. method:: Engine.from_string(template_code) Compiles the given template code and returns a :class:`Template` object. diff --git a/docs/ref/urls.txt b/docs/ref/urls.txt index c7d157ad690..8a07b4046a8 100644 --- a/docs/ref/urls.txt +++ b/docs/ref/urls.txt @@ -12,8 +12,6 @@ .. function:: path(route, view, kwargs=None, name=None) -.. versionadded:: 2.0 - Returns an element for inclusion in ``urlpatterns``. For example:: from django.urls import include, path @@ -53,8 +51,6 @@ argument is useful. .. function:: re_path(route, view, kwargs=None, name=None) -.. versionadded:: 2.0 - Returns an element for inclusion in ``urlpatterns``. For example:: from django.urls import include, re_path @@ -108,18 +104,11 @@ The ``view``, ``kwargs`` and ``name`` arguments are the same as for See :ref:`including-other-urlconfs` and :ref:`namespaces-and-include`. -.. versionchanged:: 2.0 - - In older versions, this function is located in ``django.conf.urls``. The - old location still works for backwards compatibility. - ``register_converter()`` ======================== .. function:: register_converter(converter, type_name) -.. versionadded:: 2.0 - The function for registering a converter for use in :func:`~django.urls.path()` ``route``\s. diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt index cde619e3156..d3303065cc1 100644 --- a/docs/ref/utils.txt +++ b/docs/ref/utils.txt @@ -136,10 +136,6 @@ The functions defined in this module share the following properties: 8601 (e.g. ``P4DT1H15M20S`` which is equivalent to ``4 1:15:20``) or PostgreSQL's day-time interval format (e.g. ``3 days 04:05:06``). - .. versionchanged:: 2.0 - - Support for PostgreSQL's interval format was added. - ``django.utils.decorators`` =========================== diff --git a/docs/ref/validators.txt b/docs/ref/validators.txt index 2abfd3599eb..75199642b03 100644 --- a/docs/ref/validators.txt +++ b/docs/ref/validators.txt @@ -306,8 +306,6 @@ to, or in lieu of custom ``field.clean()`` methods. .. class:: ProhibitNullCharactersValidator(message=None, code=None) - .. versionadded:: 2.0 - Raises a :exc:`~django.core.exceptions.ValidationError` if ``str(value)`` contains one or more nulls characters (``'\x00'``). diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt index 97fac352ac3..2cb7d06bcc7 100644 --- a/docs/topics/auth/customizing.txt +++ b/docs/topics/auth/customizing.txt @@ -628,12 +628,6 @@ password resets. You must then provide some key implementation details: first name. If implemented, this replaces the username in the greeting to the user in the header of :mod:`django.contrib.admin`. - .. versionchanged:: 2.0 - - In older versions, subclasses are required to implement - ``get_short_name()`` and ``get_full_name()`` as ``AbstractBaseUser`` - has implementations that raise ``NotImplementedError``. - .. admonition:: Importing ``AbstractBaseUser`` ``AbstractBaseUser`` and ``BaseUserManager`` are importable from diff --git a/docs/topics/cache.txt b/docs/topics/cache.txt index 3ca3a08a4ab..2ffad676864 100644 --- a/docs/topics/cache.txt +++ b/docs/topics/cache.txt @@ -659,10 +659,6 @@ example: .. sidebar .. {% endcache %} -.. versionchanged:: 2.0 - - Older versions don't allow a ``None`` timeout. - Sometimes you might want to cache multiple copies of a fragment depending on some dynamic data that appears inside the fragment. For example, you might want a separate cached copy of the sidebar used in the previous example for every user @@ -872,10 +868,6 @@ Like ``cache.set()``, ``set_many()`` takes an optional ``timeout`` parameter. On supported backends (memcached), ``set_many()`` returns a list of keys that failed to be inserted. -.. versionchanged:: 2.0 - - The return value containing list of failing keys was added. - You can delete keys explicitly with ``delete()``. This is an easy way of clearing the cache for a particular object:: diff --git a/docs/topics/db/aggregation.txt b/docs/topics/db/aggregation.txt index 91a9b4fa3c3..15af14542a6 100644 --- a/docs/topics/db/aggregation.txt +++ b/docs/topics/db/aggregation.txt @@ -368,10 +368,6 @@ Each ``Author`` in the result set will have the ``num_books`` and rows. The aggregation ``filter`` argument is only useful when using two or more aggregations over the same relations with different conditionals. -.. versionchanged:: 2.0 - - The ``filter`` argument was added to aggregates. - Order of ``annotate()`` and ``filter()`` clauses ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/docs/topics/db/instrumentation.txt b/docs/topics/db/instrumentation.txt index 9578c1224b0..529347094fa 100644 --- a/docs/topics/db/instrumentation.txt +++ b/docs/topics/db/instrumentation.txt @@ -2,8 +2,6 @@ Database instrumentation ======================== -.. versionadded:: 2.0 - To help you understand and control the queries issued by your code, Django provides a hook for installing wrapper functions around the execution of database queries. For example, wrappers can count queries, measure query diff --git a/docs/topics/db/sql.txt b/docs/topics/db/sql.txt index 39a54e4239f..7f01c32c74d 100644 --- a/docs/topics/db/sql.txt +++ b/docs/topics/db/sql.txt @@ -372,7 +372,3 @@ Calling stored procedures with connection.cursor() as cursor: cursor.callproc('test_procedure', [1, 'test']) - - .. versionchanged:: 2.0 - - The ``kparams`` argument was added. diff --git a/docs/topics/forms/media.txt b/docs/topics/forms/media.txt index d857188bb4e..398a4538b13 100644 --- a/docs/topics/forms/media.txt +++ b/docs/topics/forms/media.txt @@ -335,12 +335,6 @@ For example:: Combining ``Media`` objects with assets in a conflicting order results in a ``MediaOrderConflictWarning``. -.. versionchanged:: 2.0 - - In older versions, the assets of ``Media`` objects are concatenated rather - than merged in a way that tries to preserve the relative ordering of the - elements in each list. - ``Media`` on Forms ================== diff --git a/docs/topics/pagination.txt b/docs/topics/pagination.txt index 52cc4113b2f..05c101321f7 100644 --- a/docs/topics/pagination.txt +++ b/docs/topics/pagination.txt @@ -176,8 +176,6 @@ Methods .. method:: Paginator.get_page(number) - .. versionadded:: 2.0 - Returns a :class:`Page` object with the given 1-based index, while also handling out of range and invalid page numbers.