1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Removed versionadded/changed annotations for 4.0.

This commit is contained in:
Carlton Gibson
2022-05-10 15:07:11 +02:00
committed by Carlton Gibson
parent d10e569ea5
commit ca1c3151c3
44 changed files with 0 additions and 316 deletions

View File

@@ -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:: 4.0
Older versions don't display model cached properties.
A model with useful documentation might look like this::
class BlogEntry(models.Model):

View File

@@ -1203,8 +1203,6 @@ subclass::
.. attribute:: ModelAdmin.search_help_text
.. versionadded:: 4.0
Set ``search_help_text`` to specify a descriptive text for the search box
which will be displayed below it.
@@ -1938,8 +1936,6 @@ templates used by the :class:`ModelAdmin` views:
.. method:: ModelAdmin.get_formset_kwargs(request, obj, inline, prefix)
.. versionadded:: 4.0
A hook for customizing the keyword arguments passed to the constructor of a
formset. For example, to pass ``request`` to formset forms::
@@ -2091,10 +2087,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:: 4.0
jQuery was upgraded from 3.5.1 to 3.6.0.
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
@@ -2310,10 +2302,6 @@ The ``InlineModelAdmin`` class adds or customizes:
:attr:`.InlineModelAdmin.verbose_name` is defined, Django will use
:attr:`.InlineModelAdmin.verbose_name` + ``'s'``.
.. versionchanged:: 4.0
The fallback to :attr:`.InlineModelAdmin.verbose_name` was added.
.. attribute:: InlineModelAdmin.can_delete
Specifies whether or not inline objects can be deleted in the inline.
@@ -2895,10 +2883,6 @@ Templates can override or extend base admin templates as described in
* ``admin_url``: admin changelist URL for the model
* ``add_url``: admin URL to add a new model instance
.. versionchanged:: 4.0
The ``model`` variable for each model was added.
.. method:: AdminSite.get_app_list(request, app_label=None)
Returns a list of applications from the :doc:`application registry