diff --git a/docs/howto/custom-management-commands.txt b/docs/howto/custom-management-commands.txt index f2118bee49..e797c15cbb 100644 --- a/docs/howto/custom-management-commands.txt +++ b/docs/howto/custom-management-commands.txt @@ -239,8 +239,6 @@ All attributes can be set in your derived class and can be used in .. attribute:: BaseCommand.suppressed_base_arguments - .. versionadded:: 4.0 - The default command options to suppress in the help output. This should be a set of option names (e.g. ``'--verbosity'``). The default values for the suppressed options are still passed. diff --git a/docs/internals/contributing/writing-code/coding-style.txt b/docs/internals/contributing/writing-code/coding-style.txt index 1bfe01bab5..8aebcfa556 100644 --- a/docs/internals/contributing/writing-code/coding-style.txt +++ b/docs/internals/contributing/writing-code/coding-style.txt @@ -127,10 +127,6 @@ Python style """ ... -.. versionchanged:: 4.0.3 - - All Python code in Django was reformatted with `black`_. - .. _coding-style-imports: Imports diff --git a/docs/ref/checks.txt b/docs/ref/checks.txt index 233d999fe7..92278db659 100644 --- a/docs/ref/checks.txt +++ b/docs/ref/checks.txt @@ -94,10 +94,6 @@ Django's system checks are organized using the following tags: Some checks may be registered with multiple tags. -.. versionchanged:: 4.0 - - The ``files`` tag was added. - Core system checks ================== @@ -157,8 +153,6 @@ If you're using MySQL or MariaDB, the following checks will be performed: Managing files -------------- -.. versionadded:: 4.0 - The following checks verify your setup for :doc:`/topics/files`: * **files.E001**: The :setting:`FILE_UPLOAD_TEMP_DIR` setting refers to the diff --git a/docs/ref/class-based-views/generic-editing.txt b/docs/ref/class-based-views/generic-editing.txt index cb03b531cc..84a8a4dda0 100644 --- a/docs/ref/class-based-views/generic-editing.txt +++ b/docs/ref/class-based-views/generic-editing.txt @@ -285,8 +285,6 @@ editing content: .. attribute:: form_class - .. versionadded:: 4.0 - Inherited from :class:`~django.views.generic.edit.BaseDeleteView`. The form class that will be used to confirm the request. By default :class:`django.forms.Form`, resulting in an empty form that is always @@ -336,8 +334,3 @@ editing content: * :class:`django.views.generic.edit.DeletionMixin` * :class:`django.views.generic.edit.FormMixin` * :class:`django.views.generic.detail.BaseDetailView` - - .. versionchanged:: 4.0 - - In older versions, ``BaseDeleteView`` does not inherit from - ``FormMixin``. diff --git a/docs/ref/contrib/admin/admindocs.txt b/docs/ref/contrib/admin/admindocs.txt index 38c67ea6bd..5a95e101ed 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:: 4.0 - - Older versions don't display model cached properties. - A model with useful documentation might look like this:: class BlogEntry(models.Model): diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index 964d6eeccf..74af773dec 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -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 `. -.. 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 diff --git a/docs/ref/contrib/gis/admin.txt b/docs/ref/contrib/gis/admin.txt index ee66e3f2c1..8446291ae0 100644 --- a/docs/ref/contrib/gis/admin.txt +++ b/docs/ref/contrib/gis/admin.txt @@ -8,8 +8,6 @@ GeoDjango's admin site ``GISModelAdmin`` ================= -.. versionadded:: 4.0 - .. class:: GISModelAdmin .. attribute:: gis_widget diff --git a/docs/ref/contrib/gis/gdal.txt b/docs/ref/contrib/gis/gdal.txt index c7174a3a5a..d5dba8677e 100644 --- a/docs/ref/contrib/gis/gdal.txt +++ b/docs/ref/contrib/gis/gdal.txt @@ -1160,10 +1160,6 @@ blue. >>> rst.name # Stored in a random path in the vsimem filesystem. '/vsimem/da300bdb-129d-49a8-b336-e410a9428dad' - .. versionchanged:: 4.0 - - Creating rasters in any GDAL virtual filesystem was allowed. - .. attribute:: name The name of the source which is equivalent to the input file path or the name @@ -1822,8 +1818,6 @@ Here's how to create a raster and return it as a file in an Using other Virtual Filesystems ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. versionadded:: 4.0 - Depending on the local build of GDAL other virtual filesystems may be supported. You can use them by prepending the provided path with the appropriate ``/vsi*/`` prefix. See the `GDAL Virtual Filesystems diff --git a/docs/ref/contrib/postgres/expressions.txt b/docs/ref/contrib/postgres/expressions.txt index 79590c2393..05d5096fee 100644 --- a/docs/ref/contrib/postgres/expressions.txt +++ b/docs/ref/contrib/postgres/expressions.txt @@ -13,8 +13,6 @@ These expressions are available from the .. class:: ArraySubquery(queryset) -.. versionadded:: 4.0 - ``ArraySubquery`` is a :class:`~django.db.models.Subquery` that uses the PostgreSQL ``ARRAY`` constructor to build a list of values from the queryset, which must use :meth:`.QuerySet.values` to return only a single column. diff --git a/docs/ref/contrib/postgres/indexes.txt b/docs/ref/contrib/postgres/indexes.txt index 88f55900bc..4e421502a4 100644 --- a/docs/ref/contrib/postgres/indexes.txt +++ b/docs/ref/contrib/postgres/indexes.txt @@ -178,10 +178,6 @@ available from the ``django.contrib.postgres.indexes`` module. creates an exclusion constraint on ``circle`` using ``circle_ops``. - .. versionchanged:: 4.0 - - Support for functional unique constraints was added. - .. versionchanged:: 4.1 Support for exclusion constraints was added. diff --git a/docs/ref/contrib/postgres/lookups.txt b/docs/ref/contrib/postgres/lookups.txt index d9f76318cc..83f21e8dc1 100644 --- a/docs/ref/contrib/postgres/lookups.txt +++ b/docs/ref/contrib/postgres/lookups.txt @@ -27,8 +27,6 @@ The ``trigram_similar`` lookup can be used on .. fieldlookup:: trigram_word_similar -.. versionadded:: 4.0 - The ``trigram_word_similar`` lookup allows you to perform trigram word similarity lookups using a dedicated PostgreSQL extension. It can be approximately understood as measuring the greatest number of trigrams shared diff --git a/docs/ref/contrib/postgres/operations.txt b/docs/ref/contrib/postgres/operations.txt index b63598cb1b..46ba3300ae 100644 --- a/docs/ref/contrib/postgres/operations.txt +++ b/docs/ref/contrib/postgres/operations.txt @@ -186,8 +186,6 @@ database. Adding constraints without enforcing validation =============================================== -.. versionadded:: 4.0 - PostgreSQL supports the ``NOT VALID`` option with the ``ADD CONSTRAINT`` statement to add check constraints without enforcing validation on existing rows. This option is useful if you want to skip the potentially lengthy scan of diff --git a/docs/ref/contrib/postgres/search.txt b/docs/ref/contrib/postgres/search.txt index fa369670bb..e36f4028fe 100644 --- a/docs/ref/contrib/postgres/search.txt +++ b/docs/ref/contrib/postgres/search.txt @@ -318,8 +318,6 @@ Usage example:: ``TrigramWordSimilarity`` ------------------------- -.. versionadded:: 4.0 - .. class:: TrigramWordSimilarity(string, expression, **extra) Accepts a string or expression, and a field name or expression. Returns the @@ -358,8 +356,6 @@ Usage example:: ``TrigramWordDistance`` ----------------------- -.. versionadded:: 4.0 - .. class:: TrigramWordDistance(string, expression, **extra) Accepts a string or expression, and a field name or expression. Returns the diff --git a/docs/ref/contrib/staticfiles.txt b/docs/ref/contrib/staticfiles.txt index a0b466ad28..152838736c 100644 --- a/docs/ref/contrib/staticfiles.txt +++ b/docs/ref/contrib/staticfiles.txt @@ -325,12 +325,6 @@ argument. For example:: manifest_storage = StaticFilesStorage(location=settings.BASE_DIR) super().__init__(*args, manifest_storage=manifest_storage, **kwargs) -.. versionchanged:: 4.0 - - Support for finding paths in JavaScript source map comments was added. - - The ``manifest_storage`` argument was added. - .. versionchanged:: 4.1 Support for finding paths in CSS source map comments was added. @@ -397,10 +391,6 @@ hashing algorithm. Use this mixin with a custom storage to append the MD5 hash of the file's content to the filename as :class:`~storage.ManifestStaticFilesStorage` does. -.. versionchanged:: 4.0 - - The ``manifest_storage`` argument was added. - Finders Module ============== diff --git a/docs/ref/csrf.txt b/docs/ref/csrf.txt index 360c5a3f47..a4712c29f0 100644 --- a/docs/ref/csrf.txt +++ b/docs/ref/csrf.txt @@ -82,10 +82,6 @@ The CSRF protection is based on the following things: Expanding the accepted referers beyond the current host or cookie domain can be done with the :setting:`CSRF_TRUSTED_ORIGINS` setting. -.. versionadded:: 4.0 - - ``Origin`` checking was added, as described above. - .. versionchanged:: 4.1 In older versions, the CSRF cookie value was masked. diff --git a/docs/ref/databases.txt b/docs/ref/databases.txt index ca6362a7a6..1d4c14ab96 100644 --- a/docs/ref/databases.txt +++ b/docs/ref/databases.txt @@ -160,11 +160,6 @@ password from the `password file`_, you must specify them in the .. _connection service file: https://www.postgresql.org/docs/current/libpq-pgservice.html .. _password file: https://www.postgresql.org/docs/current/libpq-pgpass.html -.. versionchanged:: 4.0 - - Support for connecting by a service name, and specifying a password file - was added. - .. warning:: Using a service name for testing purposes is not supported. This diff --git a/docs/ref/django-admin.txt b/docs/ref/django-admin.txt index 1b487c1e18..25a1107c55 100644 --- a/docs/ref/django-admin.txt +++ b/docs/ref/django-admin.txt @@ -1027,10 +1027,6 @@ multithreaded by default. Uses IPv6 for the development server. This changes the default IP address from ``127.0.0.1`` to ``::1``. -.. versionchanged:: 4.0 - - Support for the ``--skip-checks`` option was added. - Examples of using different ports and addresses ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -1326,8 +1322,6 @@ empty list. .. django-admin-option:: --exclude DIRECTORIES, -x DIRECTORIES -.. versionadded:: 4.0 - Specifies which directories in the app template should be excluded, in addition to ``.git`` and ``__pycache__``. If this option is not provided, directories named ``__pycache__`` or starting with ``.`` will be excluded. @@ -1403,8 +1397,6 @@ empty list. .. django-admin-option:: --exclude DIRECTORIES, -x DIRECTORIES -.. versionadded:: 4.0 - Specifies which directories in the project template should be excluded, in addition to ``.git`` and ``__pycache__``. If this option is not provided, directories named ``__pycache__`` or starting with ``.`` will be excluded. @@ -1463,8 +1455,6 @@ before running the test suite. .. django-admin-option:: --shuffle [SEED] -.. versionadded:: 4.0 - Randomizes the order of tests before running them. This can help detect tests that aren't properly isolated. The test order generated by this option is a deterministic function of the integer seed given. When no seed is passed, a @@ -1548,10 +1538,6 @@ don't. in order to exchange them between processes. See :ref:`python:pickle-picklable` for details. -.. versionchanged:: 4.0 - - Support for the value ``auto`` was added. - .. option:: --tag TAGS Runs only tests :ref:`marked with the specified tags `. @@ -1559,10 +1545,6 @@ May be specified multiple times and combined with :option:`test --exclude-tag`. Tests that fail to load are always considered matching. -.. versionchanged:: 4.0 - - In older versions, tests that failed to load did not match tags. - .. option:: --exclude-tag EXCLUDE_TAGS Excludes tests :ref:`marked with the specified tags `. diff --git a/docs/ref/forms/api.txt b/docs/ref/forms/api.txt index 72937bfa9a..0d526d26aa 100644 --- a/docs/ref/forms/api.txt +++ b/docs/ref/forms/api.txt @@ -529,8 +529,6 @@ attributes. ``template_name`` ~~~~~~~~~~~~~~~~~ -.. versionadded:: 4.0 - .. attribute:: Form.template_name The name of the template rendered if the form is cast into a string, e.g. via @@ -549,8 +547,6 @@ class. ``render()`` ~~~~~~~~~~~~ -.. versionadded:: 4.0 - .. method:: Form.render(template_name=None, context=None, renderer=None) The render method is called by ``__str__`` as well as the @@ -567,8 +563,6 @@ single call. ``get_context()`` ~~~~~~~~~~~~~~~~~ -.. versionadded:: 4.0 - .. method:: Form.get_context() Return the template context for rendering the form. @@ -583,8 +577,6 @@ The available context is: ``template_name_label`` ~~~~~~~~~~~~~~~~~~~~~~~ -.. versionadded:: 4.0 - .. attribute:: Form.template_name_label The template used to render a field's ``