diff options
| author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-09-11 09:57:44 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-09-18 22:12:40 +0200 |
| commit | 295467c04ab4c26a1a9d3798b1e941003fa116cf (patch) | |
| tree | eac57d86bd2c1664b63d17a4325cfffbf720ae44 /docs/topics | |
| parent | 590a31eb105292510ce94adebc85d691b30f49ca (diff) | |
Removed versionadded/changed annotations for 4.2.
This also removes remaining versionadded/changed annotations for older
versions.
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/async.txt | 4 | ||||
| -rw-r--r-- | docs/topics/auth/customizing.txt | 7 | ||||
| -rw-r--r-- | docs/topics/auth/default.txt | 9 | ||||
| -rw-r--r-- | docs/topics/auth/passwords.txt | 9 | ||||
| -rw-r--r-- | docs/topics/db/queries.txt | 7 | ||||
| -rw-r--r-- | docs/topics/db/transactions.txt | 8 | ||||
| -rw-r--r-- | docs/topics/files.txt | 4 | ||||
| -rw-r--r-- | docs/topics/forms/modelforms.txt | 4 | ||||
| -rw-r--r-- | docs/topics/http/file-uploads.txt | 8 | ||||
| -rw-r--r-- | docs/topics/http/middleware.txt | 4 | ||||
| -rw-r--r-- | docs/topics/i18n/translation.txt | 5 | ||||
| -rw-r--r-- | docs/topics/migrations.txt | 4 | ||||
| -rw-r--r-- | docs/topics/testing/advanced.txt | 8 | ||||
| -rw-r--r-- | docs/topics/testing/overview.txt | 2 | ||||
| -rw-r--r-- | docs/topics/testing/tools.txt | 40 |
15 files changed, 0 insertions, 123 deletions
diff --git a/docs/topics/async.txt b/docs/topics/async.txt index 0e33753e68..8a9857a0df 100644 --- a/docs/topics/async.txt +++ b/docs/topics/async.txt @@ -150,10 +150,6 @@ Transactions do not yet work in async mode. If you have a piece of code that needs transactions behavior, we recommend you write that piece as a single synchronous function and call it using :func:`sync_to_async`. -.. versionchanged:: 4.2 - - Asynchronous model and related manager interfaces were added. - .. _async_performance: Performance diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt index 78bee37a0f..bd0c074273 100644 --- a/docs/topics/auth/customizing.txt +++ b/docs/topics/auth/customizing.txt @@ -731,8 +731,6 @@ The following attributes and methods are available on any subclass of .. method:: models.AbstractBaseUser.get_session_auth_fallback_hash() - .. versionadded:: 4.1.8 - Yields the HMAC of the password field using :setting:`SECRET_KEY_FALLBACKS`. Used by ``get_user()``. @@ -871,11 +869,6 @@ extend these forms in this manner:: model = CustomUser fields = UserCreationForm.Meta.fields + ("custom_field",) -.. versionchanged:: 4.2 - - In older versions, :class:`~django.contrib.auth.forms.UserCreationForm` - didn't save many-to-many form fields for a custom user model. - Custom users and :mod:`django.contrib.admin` -------------------------------------------- diff --git a/docs/topics/auth/default.txt b/docs/topics/auth/default.txt index 4aee26d9ca..c8140e4d22 100644 --- a/docs/topics/auth/default.txt +++ b/docs/topics/auth/default.txt @@ -1723,8 +1723,6 @@ provides several built-in forms located in :mod:`django.contrib.auth.forms`: .. class:: BaseUserCreationForm - .. versionadded:: 4.2 - A :class:`~django.forms.ModelForm` for creating a new user. This is the recommended base class if you need to customize the user creation form. @@ -1741,13 +1739,6 @@ provides several built-in forms located in :mod:`django.contrib.auth.forms`: similar usernames, the form doesn't allow usernames that differ only in case. - .. versionchanged:: 4.2 - - In older versions, :class:`UserCreationForm` didn't save many-to-many - form fields for a custom user model. - - In older versions, usernames that differ only in case are allowed. - .. currentmodule:: django.contrib.auth Authentication data in templates diff --git a/docs/topics/auth/passwords.txt b/docs/topics/auth/passwords.txt index 0876ac4f6e..d0a812f398 100644 --- a/docs/topics/auth/passwords.txt +++ b/docs/topics/auth/passwords.txt @@ -620,10 +620,6 @@ Django includes four validators: ``user_attributes``, whereas a value of 1.0 rejects only passwords that are identical to an attribute's value. - .. versionchanged:: 2.2.26 - - The ``max_similarity`` parameter was limited to a minimum value of 0.1. - .. class:: CommonPasswordValidator(password_list_path=DEFAULT_PASSWORD_LIST_PATH) Validates that the password is not a common password. This converts the @@ -635,11 +631,6 @@ Django includes four validators: common passwords. This file should contain one lowercase password per line and may be plain text or gzipped. - .. versionchanged:: 4.2 - - The list of 20,000 common passwords was updated to the most recent - version. - .. class:: NumericPasswordValidator() Validate that the password is not entirely numeric. diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt index 6dfe97f317..b975f6cdfe 100644 --- a/docs/topics/db/queries.txt +++ b/docs/topics/db/queries.txt @@ -1085,11 +1085,6 @@ Unless you are sure you wish to work with SQL ``NULL`` values, consider setting Storing JSON scalar ``null`` does not violate :attr:`null=False <django.db.models.Field.null>`. -.. versionchanged:: 4.2 - - Support for expressing JSON ``null`` using ``Value(None, JSONField())`` was - added. - .. deprecated:: 4.2 Passing ``Value("null")`` to express JSON ``null`` is deprecated. @@ -1162,8 +1157,6 @@ To query for missing keys, use the ``isnull`` lookup: ``KT()`` expressions ~~~~~~~~~~~~~~~~~~~~ -.. versionadded:: 4.2 - .. module:: django.db.models.fields.json .. class:: KT(lookup) diff --git a/docs/topics/db/transactions.txt b/docs/topics/db/transactions.txt index c43312ec0f..951ce54a68 100644 --- a/docs/topics/db/transactions.txt +++ b/docs/topics/db/transactions.txt @@ -332,10 +332,6 @@ are caught and logged to the ``django.db.backends.base`` logger. You can use :meth:`.TestCase.captureOnCommitCallbacks` to test callbacks registered with :func:`on_commit`. -.. versionchanged:: 4.2 - - The ``robust`` argument was added. - Savepoints ---------- @@ -382,10 +378,6 @@ transaction raises an uncaught exception, no later registered functions in that same transaction will run. This is the same behavior as if you'd executed the functions sequentially yourself without :func:`on_commit`. -.. versionchanged:: 4.2 - - The ``robust`` argument was added. - Timing of execution ------------------- diff --git a/docs/topics/files.txt b/docs/topics/files.txt index 9ec4b0dc66..6ae1603f07 100644 --- a/docs/topics/files.txt +++ b/docs/topics/files.txt @@ -272,7 +272,3 @@ use :data:`~django.core.files.storage.storages`:: class MyModel(models.Model): upload = models.FileField(storage=select_storage) - -.. versionchanged:: 4.2 - - Support for ``storages`` was added. diff --git a/docs/topics/forms/modelforms.txt b/docs/topics/forms/modelforms.txt index fbd5695c17..53ce716a4d 100644 --- a/docs/topics/forms/modelforms.txt +++ b/docs/topics/forms/modelforms.txt @@ -676,10 +676,6 @@ the field declaratively and setting its ``validators`` parameter:: See the :doc:`form field documentation </ref/forms/fields>` for more information on fields and their arguments. -.. versionchanged:: 4.2 - - The ``Meta.formfield_callback`` attribute was added. - Enabling localization of fields ------------------------------- diff --git a/docs/topics/http/file-uploads.txt b/docs/topics/http/file-uploads.txt index cb0fb5b7fb..0e696badc0 100644 --- a/docs/topics/http/file-uploads.txt +++ b/docs/topics/http/file-uploads.txt @@ -230,14 +230,6 @@ uploads: instance (in a single field), for example, even if the custom widget is used with a form field related to a model ``FileField``. -.. versionchanged:: 3.2.19 - - In previous versions, there was no support for the ``allow_multiple_selected`` - class attribute, and users were advised to create the widget with the HTML - attribute ``multiple`` set through the ``attrs`` argument. However, this - caused validation of the form field to be applied only to the last file - submitted, which could have adverse security implications. - Upload Handlers =============== diff --git a/docs/topics/http/middleware.txt b/docs/topics/http/middleware.txt index 9b4bd12a7b..1c3b3c2a26 100644 --- a/docs/topics/http/middleware.txt +++ b/docs/topics/http/middleware.txt @@ -273,10 +273,6 @@ asynchronous iterators. The wrapping function must match. Check <django.http.StreamingHttpResponse.is_async>` if your middleware needs to support both types of iterator. -.. versionchanged:: 4.2 - - Support for streaming responses with asynchronous iterators was added. - Exception handling ================== diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt index 6fe126f59d..41bee79204 100644 --- a/docs/topics/i18n/translation.txt +++ b/docs/topics/i18n/translation.txt @@ -741,11 +741,6 @@ In practice you'll use this to get a string you can use in multiple places in a template or so you can use the output as an argument for other template tags or filters. -.. versionchanged:: 4.2 - - In older versions, ``asvar`` instances weren't marked as safe for (HTML) - output purposes. - ``{% blocktranslate %}`` also supports :ref:`contextual markers<contextual-markers>` using the ``context`` keyword: diff --git a/docs/topics/migrations.txt b/docs/topics/migrations.txt index b7cd7043c2..248a7addbe 100644 --- a/docs/topics/migrations.txt +++ b/docs/topics/migrations.txt @@ -795,10 +795,6 @@ Django can serialize the following: - Any class reference (must be in module's top-level scope) - Anything with a custom ``deconstruct()`` method (:ref:`see below <custom-deconstruct-method>`) -.. versionchanged:: 4.2 - - Serialization support for ``enum.Flag`` was added. - .. versionchanged:: 5.0 Serialization support for functions decorated with :func:`functools.cache` diff --git a/docs/topics/testing/advanced.txt b/docs/topics/testing/advanced.txt index 54b9d7d133..fda77e7661 100644 --- a/docs/topics/testing/advanced.txt +++ b/docs/topics/testing/advanced.txt @@ -32,10 +32,6 @@ restricted subset of the test client API: attributes must be supplied by the test itself if required for the view to function properly. -.. versionchanged:: 4.2 - - The ``headers`` parameter was added. - Example ------- @@ -89,10 +85,6 @@ difference being that it returns ``ASGIRequest`` instances rather than Arbitrary keyword arguments in ``defaults`` are added directly into the ASGI scope. -.. versionchanged:: 4.2 - - The ``headers`` parameter was added. - Testing class-based views ========================= diff --git a/docs/topics/testing/overview.txt b/docs/topics/testing/overview.txt index 5dbe46ceb2..30f4a75edc 100644 --- a/docs/topics/testing/overview.txt +++ b/docs/topics/testing/overview.txt @@ -381,8 +381,6 @@ time to run tests. Avoiding disk access for media files ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -.. versionadded:: 4.2 - The :class:`~django.core.files.storage.InMemoryStorage` is a convenient way to prevent disk access for media files. All data is kept in memory, then it gets discarded after tests run. diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index a9373ff108..e9b12d94f0 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -158,10 +158,6 @@ Use the ``django.test.Client`` class to make requests. Once you have a ``Client`` instance, you can call any of the following methods: - .. versionchanged:: 4.2 - - The ``headers`` parameter was added. - .. method:: Client.get(path, data=None, follow=False, secure=False, *, headers=None, **extra) Makes a GET request on the provided ``path`` and returns a ``Response`` @@ -234,10 +230,6 @@ Use the ``django.test.Client`` class to make requests. If you set ``secure`` to ``True`` the client will emulate an HTTPS request. - .. versionchanged:: 4.2 - - The ``headers`` parameter was added. - .. method:: Client.post(path, data=None, content_type=MULTIPART_CONTENT, follow=False, secure=False, *, headers=None, **extra) Makes a POST request on the provided ``path`` and returns a @@ -351,10 +343,6 @@ Use the ``django.test.Client`` class to make requests. If you set ``secure`` to ``True`` the client will emulate an HTTPS request. - .. versionchanged:: 4.2 - - The ``headers`` parameter was added. - .. method:: Client.head(path, data=None, follow=False, secure=False, *, headers=None, **extra) Makes a HEAD request on the provided ``path`` and returns a @@ -362,10 +350,6 @@ Use the ``django.test.Client`` class to make requests. including the ``follow``, ``secure``, ``headers``, and ``extra`` parameters, except it does not return a message body. - .. versionchanged:: 4.2 - - The ``headers`` parameter was added. - .. method:: Client.options(path, data='', content_type='application/octet-stream', follow=False, secure=False, *, headers=None, **extra) Makes an OPTIONS request on the provided ``path`` and returns a @@ -377,10 +361,6 @@ Use the ``django.test.Client`` class to make requests. The ``follow``, ``secure``, ``headers``, and ``extra`` parameters act the same as for :meth:`Client.get`. - .. versionchanged:: 4.2 - - The ``headers`` parameter was added. - .. method:: Client.put(path, data='', content_type='application/octet-stream', follow=False, secure=False, *, headers=None, **extra) Makes a PUT request on the provided ``path`` and returns a @@ -392,10 +372,6 @@ Use the ``django.test.Client`` class to make requests. The ``follow``, ``secure``, ``headers``, and ``extra`` parameters act the same as for :meth:`Client.get`. - .. versionchanged:: 4.2 - - The ``headers`` parameter was added. - .. method:: Client.patch(path, data='', content_type='application/octet-stream', follow=False, secure=False, *, headers=None, **extra) Makes a PATCH request on the provided ``path`` and returns a @@ -404,10 +380,6 @@ Use the ``django.test.Client`` class to make requests. The ``follow``, ``secure``, ``headers``, and ``extra`` parameters act the same as for :meth:`Client.get`. - .. versionchanged:: 4.2 - - The ``headers`` parameter was added. - .. method:: Client.delete(path, data='', content_type='application/octet-stream', follow=False, secure=False, *, headers=None, **extra) Makes a DELETE request on the provided ``path`` and returns a @@ -419,10 +391,6 @@ Use the ``django.test.Client`` class to make requests. The ``follow``, ``secure``, ``headers``, and ``extra`` parameters act the same as for :meth:`Client.get`. - .. versionchanged:: 4.2 - - The ``headers`` parameter was added. - .. method:: Client.trace(path, follow=False, secure=False, *, headers=None, **extra) Makes a TRACE request on the provided ``path`` and returns a @@ -435,10 +403,6 @@ Use the ``django.test.Client`` class to make requests. The ``follow``, ``secure``, ``headers``, and ``extra`` parameters act the same as for :meth:`Client.get`. - .. versionchanged:: 4.2 - - The ``headers`` parameter was added. - .. method:: Client.login(**credentials) .. method:: Client.alogin(**credentials) @@ -2041,10 +2005,6 @@ test client, with the following exceptions: >>> c = AsyncClient() >>> c.get("/customers/details/", {"name": "fred", "age": 7}, ACCEPT="application/json") -.. versionchanged:: 4.2 - - The ``headers`` parameter was added. - .. versionchanged:: 5.0 Support for the ``follow`` parameter was added to the ``AsyncClient``. |
