Permalink
Browse files

Removed versionadded/changed annotations for 2.0.

  • Loading branch information...
timgraham committed May 17, 2018
1 parent 1cbd3d7 commit 7543ab1f8dcb20dbbdf6a41eace95fc47c8dcaa3
@@ -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::
@@ -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
<https://select2.org/>`_ 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
@@ -51,10 +51,6 @@ Fields
Optional (:attr:`blank=True <django.db.models.Field.blank>`). 150
characters or fewer.
- .. versionchanged:: 2.0
-
- The ``max_length`` increased from 30 to 150 characters.
-
.. attribute:: email
Optional (:attr:`blank=True <django.db.models.Field.blank>`). Email
@@ -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
@@ -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 <https://postgis.net/docs/ST_Azimuth.html>`__,
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 <https://postgis.net/docs/ST_LineLocatePoint.html>`__,
SpatiaLite
@@ -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,17 +1400,13 @@ blue.
.. attribute:: info
- .. versionadded:: 2.0
-
Returns a string with a summary of the raster. This is equivalent to
the `gdalinfo`__ command line utility.
__ http://www.gdal.org/gdalinfo.html
.. 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.
@@ -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 <https://postgis.net/docs/ST_Distance.html>`__ 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``
@@ -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)
@@ -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``.
@@ -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
@@ -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
<https://www.postgresql.org/docs/current/static/gist.html>`_. These indexes
are automatically created on spatial fields with :attr:`spatial_index=True
@@ -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``
@@ -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
-------
View
@@ -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
View
@@ -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 <serialization-formats>` (e.g.,
``json`` or ``xml``) for fixtures :ref:`read from stdin
<loading-fixtures-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.
View
@@ -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.
View
@@ -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.
@@ -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
Oops, something went wrong.

0 comments on commit 7543ab1

Please sign in to comment.