mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Removed versionadded/changed annotations for 5.0.
This also removes remaining versionadded/changed annotations for older versions.
This commit is contained in:
@@ -216,8 +216,6 @@ concrete example.
|
||||
Facets
|
||||
======
|
||||
|
||||
.. versionadded:: 5.0
|
||||
|
||||
By default, counts for each filter, known as facets, can be shown by toggling
|
||||
on via the admin UI. These counts will update according to the currently
|
||||
applied filters. See :attr:`ModelAdmin.show_facets` for more details.
|
||||
|
||||
@@ -839,10 +839,6 @@ subclass::
|
||||
|
||||
full_name = property(my_property)
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
Support for ``boolean`` attribute on properties was added.
|
||||
|
||||
* The field names in ``list_display`` will also appear as CSS classes in
|
||||
the HTML output, in the form of ``column-<field_name>`` on each ``<th>``
|
||||
element. This can be used to set column widths in a CSS file for example.
|
||||
@@ -1028,8 +1024,6 @@ subclass::
|
||||
|
||||
.. attribute:: ModelAdmin.show_facets
|
||||
|
||||
.. versionadded:: 5.0
|
||||
|
||||
Controls whether facet counts are displayed for filters in the admin
|
||||
changelist. Defaults to :attr:`.ShowFacets.ALLOW`.
|
||||
|
||||
@@ -1037,8 +1031,6 @@ subclass::
|
||||
|
||||
.. class:: ShowFacets
|
||||
|
||||
.. versionadded:: 5.0
|
||||
|
||||
Enum of allowed values for :attr:`.ModelAdmin.show_facets`.
|
||||
|
||||
.. attribute:: ALWAYS
|
||||
@@ -1895,10 +1887,6 @@ templates used by the :class:`ModelAdmin` views:
|
||||
Override this method to customize the lookups permitted for your
|
||||
:class:`~django.contrib.admin.ModelAdmin` subclass.
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
The ``request`` argument was added.
|
||||
|
||||
.. method:: ModelAdmin.has_view_permission(request, obj=None)
|
||||
|
||||
Should return ``True`` if viewing ``obj`` is permitted, ``False`` otherwise.
|
||||
@@ -2160,10 +2148,6 @@ forms or widgets depending on ``django.jQuery`` must specify
|
||||
``js=['admin/js/jquery.init.js', …]`` when :ref:`declaring form media assets
|
||||
<assets-as-a-static-definition>`.
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
jQuery was upgraded from 3.6.4 to 3.7.1.
|
||||
|
||||
The :class:`ModelAdmin` class requires jQuery by default, so there is no need
|
||||
to add jQuery to your ``ModelAdmin``’s list of media resources unless you have
|
||||
a specific need. For example, if you require the jQuery library to be in the
|
||||
@@ -2879,10 +2863,6 @@ Templates can override or extend base admin templates as described in
|
||||
The text to put at the top of each admin page, as a ``<div>`` (a string).
|
||||
By default, this is "Django administration".
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
In older versions, ``site_header`` was using an ``<h1>`` tag.
|
||||
|
||||
.. attribute:: AdminSite.site_title
|
||||
|
||||
The text to put at the end of each admin page's ``<title>`` (a string). By
|
||||
@@ -3054,15 +3034,11 @@ Templates can override or extend base admin templates as described in
|
||||
|
||||
.. method:: AdminSite.get_model_admin(model)
|
||||
|
||||
.. versionadded:: 5.0
|
||||
|
||||
Returns an admin class for the given model class. Raises
|
||||
``django.contrib.admin.exceptions.NotRegistered`` if a model isn't registered.
|
||||
|
||||
.. method:: AdminSite.get_log_entries(request)
|
||||
|
||||
.. versionadded:: 5.0
|
||||
|
||||
Returns a queryset for the related
|
||||
:class:`~django.contrib.admin.models.LogEntry` instances, shown on the site
|
||||
index page. This method can be overridden to filter the log entries by
|
||||
|
||||
@@ -173,10 +173,6 @@ Methods
|
||||
the user. (This takes care of the password hashing in making the
|
||||
comparison.)
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
``acheck_password()`` method was added.
|
||||
|
||||
.. method:: set_unusable_password()
|
||||
|
||||
Marks the user as having no password set. This isn't the same as
|
||||
@@ -721,6 +717,3 @@ Utility functions
|
||||
backend's ``get_user()`` method, or if the session auth hash doesn't
|
||||
validate.
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
``aget_user()`` function was added.
|
||||
|
||||
@@ -601,8 +601,6 @@ information.
|
||||
``GenericPrefetch()``
|
||||
---------------------
|
||||
|
||||
.. versionadded:: 5.0
|
||||
|
||||
.. class:: GenericPrefetch(lookup, querysets, to_attr=None)
|
||||
|
||||
This lookup is similar to ``Prefetch()`` and it should only be used on
|
||||
|
||||
@@ -257,8 +257,6 @@ value of the geometry.
|
||||
``ClosestPoint``
|
||||
================
|
||||
|
||||
.. versionadded:: 5.0
|
||||
|
||||
.. class:: ClosestPoint(expr1, expr2, **extra)
|
||||
|
||||
*Availability*: `PostGIS <https://postgis.net/docs/ST_ClosestPoint.html>`__,
|
||||
|
||||
@@ -879,10 +879,6 @@ aggregate, except it can be several orders of magnitude faster than performing
|
||||
a union because it rolls up geometries into a collection or multi object, not
|
||||
caring about dissolving boundaries.
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
Support for using the ``filter`` argument was added.
|
||||
|
||||
.. versionchanged:: 5.1
|
||||
|
||||
MySQL 8.0.24+ support was added.
|
||||
@@ -906,10 +902,6 @@ Example:
|
||||
>>> print(qs["poly__extent"])
|
||||
(-96.8016128540039, 29.7633724212646, -95.3631439208984, 32.782058715820)
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
Support for using the ``filter`` argument was added.
|
||||
|
||||
``Extent3D``
|
||||
~~~~~~~~~~~~
|
||||
|
||||
@@ -929,10 +921,6 @@ Example:
|
||||
>>> print(qs["poly__extent3d"])
|
||||
(-96.8016128540039, 29.7633724212646, 0, -95.3631439208984, 32.782058715820, 0)
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
Support for using the ``filter`` argument was added.
|
||||
|
||||
``MakeLine``
|
||||
~~~~~~~~~~~~
|
||||
|
||||
@@ -952,10 +940,6 @@ Example:
|
||||
>>> print(qs["poly__makeline"])
|
||||
LINESTRING (-95.3631510000000020 29.7633739999999989, -96.8016109999999941 32.7820570000000018)
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
Support for using the ``filter`` argument was added.
|
||||
|
||||
``Union``
|
||||
~~~~~~~~~
|
||||
|
||||
@@ -983,10 +967,6 @@ Example:
|
||||
... Union(poly)
|
||||
... ) # A more sensible approach.
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
Support for using the ``filter`` argument was added.
|
||||
|
||||
.. rubric:: Footnotes
|
||||
.. [#fnde9im] *See* `OpenGIS Simple Feature Specification For SQL <https://portal.ogc.org/files/?artifact_id=829>`_, at Ch. 2.1.13.2, p. 2-13 (The Dimensionally Extended Nine-Intersection Model).
|
||||
.. [#fnsdorelate] *See* `SDO_RELATE documentation <https://docs.oracle.com/en/
|
||||
|
||||
@@ -484,8 +484,6 @@ return a boolean.
|
||||
|
||||
.. method:: GEOSGeometry.equals_identical(other)
|
||||
|
||||
.. versionadded:: 5.0
|
||||
|
||||
Returns ``True`` if the two geometries are point-wise equivalent by
|
||||
checking that the structure, ordering, and values of all vertices are
|
||||
identical in all dimensions. ``NaN`` values are considered to be equal to
|
||||
|
||||
@@ -456,8 +456,6 @@ the session cookie settings:
|
||||
Testing
|
||||
=======
|
||||
|
||||
.. versionadded:: 5.0
|
||||
|
||||
This module offers a tailored test assertion method, for testing messages
|
||||
attached to an :class:`~.HttpResponse`.
|
||||
|
||||
|
||||
@@ -55,12 +55,6 @@ General-purpose aggregation functions
|
||||
|
||||
F("some_field").desc()
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
In older versions, if there are no rows and ``default`` is not
|
||||
provided, ``ArrayAgg`` returned an empty list instead of ``None``. If
|
||||
you need it, explicitly set ``default`` to ``Value([])``.
|
||||
|
||||
``BitAnd``
|
||||
----------
|
||||
|
||||
@@ -182,12 +176,6 @@ General-purpose aggregation functions
|
||||
{'parking': True, 'double_bed': True}
|
||||
]}]>
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
In older versions, if there are no rows and ``default`` is not
|
||||
provided, ``JSONBAgg`` returned an empty list instead of ``None``. If
|
||||
you need it, explicitly set ``default`` to ``Value([])``.
|
||||
|
||||
``StringAgg``
|
||||
-------------
|
||||
|
||||
@@ -243,12 +231,6 @@ General-purpose aggregation functions
|
||||
'headline': 'NASA uses Python', 'publication_names': 'Science News, The Python Journal'
|
||||
}]>
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
In older versions, if there are no rows and ``default`` is not
|
||||
provided, ``StringAgg`` returned an empty string instead of ``None``.
|
||||
If you need it, explicitly set ``default`` to ``Value("")``.
|
||||
|
||||
Aggregate functions for statistics
|
||||
==================================
|
||||
|
||||
|
||||
@@ -136,8 +136,6 @@ used for queries that select only included fields
|
||||
``violation_error_code``
|
||||
------------------------
|
||||
|
||||
.. versionadded:: 5.0
|
||||
|
||||
.. attribute:: ExclusionConstraint.violation_error_code
|
||||
|
||||
The error code used when ``ValidationError`` is raised during
|
||||
|
||||
@@ -249,11 +249,6 @@ Note:
|
||||
sitemap was requested is used. If the sitemap is built outside the
|
||||
context of a request, the default is ``'https'``.
|
||||
|
||||
.. versionchanged:: 5.0
|
||||
|
||||
In older versions, the default protocol for sitemaps built outside
|
||||
the context of a request was ``'http'``.
|
||||
|
||||
.. attribute:: Sitemap.limit
|
||||
|
||||
**Optional.**
|
||||
|
||||
Reference in New Issue
Block a user