diff options
Diffstat (limited to 'docs/topics')
| -rw-r--r-- | docs/topics/async.txt | 6 | ||||
| -rw-r--r-- | docs/topics/auth/customizing.txt | 4 | ||||
| -rw-r--r-- | docs/topics/auth/passwords.txt | 4 | ||||
| -rw-r--r-- | docs/topics/cache.txt | 9 | ||||
| -rw-r--r-- | docs/topics/db/queries.txt | 4 | ||||
| -rw-r--r-- | docs/topics/email.txt | 4 | ||||
| -rw-r--r-- | docs/topics/files.txt | 2 | ||||
| -rw-r--r-- | docs/topics/http/middleware.txt | 6 | ||||
| -rw-r--r-- | docs/topics/http/urls.txt | 4 | ||||
| -rw-r--r-- | docs/topics/http/views.txt | 2 | ||||
| -rw-r--r-- | docs/topics/i18n/translation.txt | 20 | ||||
| -rw-r--r-- | docs/topics/serialization.txt | 10 | ||||
| -rw-r--r-- | docs/topics/signing.txt | 8 | ||||
| -rw-r--r-- | docs/topics/testing/advanced.txt | 8 | ||||
| -rw-r--r-- | docs/topics/testing/tools.txt | 7 |
15 files changed, 0 insertions, 98 deletions
diff --git a/docs/topics/async.txt b/docs/topics/async.txt index b25dee7605..a79562e0f4 100644 --- a/docs/topics/async.txt +++ b/docs/topics/async.txt @@ -16,15 +16,9 @@ You can expect to see this in future releases. For now, you can use the There is also a whole range of async-native Python libraries that you can integrate with. -.. versionchanged:: 3.1 - - Support for async views was added. - Async views =========== -.. versionadded:: 3.1 - Any view can be declared async by making the callable part of it return a coroutine - commonly, this is done using ``async def``. For a function-based view, this means declaring the whole view using ``async def``. For a diff --git a/docs/topics/auth/customizing.txt b/docs/topics/auth/customizing.txt index 8314d9f171..9ae30b4b25 100644 --- a/docs/topics/auth/customizing.txt +++ b/docs/topics/auth/customizing.txt @@ -705,10 +705,6 @@ The following attributes and methods are available on any subclass of Returns an HMAC of the password field. Used for :ref:`session-invalidation-on-password-change`. - .. versionchanged:: 3.1 - - The hashing algorithm was changed to the SHA-256. - :class:`~models.AbstractUser` subclasses :class:`~models.AbstractBaseUser`: .. class:: models.AbstractUser diff --git a/docs/topics/auth/passwords.txt b/docs/topics/auth/passwords.txt index 28f22f048e..4b13334379 100644 --- a/docs/topics/auth/passwords.txt +++ b/docs/topics/auth/passwords.txt @@ -429,10 +429,6 @@ from the ``User`` model. hasher. If the password argument is ``None``, an unusable password is returned (one that will never be accepted by :func:`check_password`). - .. versionchanged:: 3.1 - - The ``password`` parameter must be a string or bytes if not ``None``. - .. function:: is_password_usable(encoded_password) Returns ``False`` if the password is a result of diff --git a/docs/topics/cache.txt b/docs/topics/cache.txt index afab1cb61e..a7bf00741d 100644 --- a/docs/topics/cache.txt +++ b/docs/topics/cache.txt @@ -628,11 +628,6 @@ Additionally, ``cache_page`` automatically sets ``Cache-Control`` and ``Expires`` headers in the response which affect :ref:`downstream caches <downstream-caches>`. -.. versionchanged:: 3.1 - - In older versions, the ``max-age`` directive from the ``Cache-Control`` - header had precedence over the cache timeout set by ``cache_page``. - Specifying per-view cache in the URLconf ---------------------------------------- @@ -930,10 +925,6 @@ particular object:: ``delete()`` returns ``True`` if the key was successfully deleted, ``False`` otherwise. -.. versionchanged:: 3.1 - - The boolean return value was added. - .. method:: cache.delete_many(keys, version=None) If you want to clear a bunch of keys at once, ``delete_many()`` can take a list diff --git a/docs/topics/db/queries.txt b/docs/topics/db/queries.txt index c3b7948caa..39508e280c 100644 --- a/docs/topics/db/queries.txt +++ b/docs/topics/db/queries.txt @@ -665,10 +665,6 @@ The ``F()`` objects support bitwise operations by ``.bitand()``, ``.bitor()``, Oracle doesn't support bitwise XOR operation. -.. versionchanged:: 3.1 - - Support for ``.bitxor()`` was added. - .. _using-transforms-in-expressions: Expressions can reference transforms diff --git a/docs/topics/email.txt b/docs/topics/email.txt index 6ea80e44ca..04ed164c01 100644 --- a/docs/topics/email.txt +++ b/docs/topics/email.txt @@ -529,10 +529,6 @@ To specify this backend, put the following in your settings:: This backend is not intended for use in production -- it is provided as a convenience that can be used during development. -.. versionchanged:: 3.1 - - Support for :class:`pathlib.Path` was added. - .. _topic-email-memory-backend: In-memory backend diff --git a/docs/topics/files.txt b/docs/topics/files.txt index 59825023ce..9398df41d7 100644 --- a/docs/topics/files.txt +++ b/docs/topics/files.txt @@ -206,8 +206,6 @@ you can pass them in as the ``storage`` argument to a Using a callable ---------------- -.. versionadded:: 3.1 - You can use a callable as the :attr:`~django.db.models.FileField.storage` parameter for :class:`~django.db.models.FileField` or :class:`~django.db.models.ImageField`. This allows you to modify the used diff --git a/docs/topics/http/middleware.txt b/docs/topics/http/middleware.txt index 1626d16992..ac440a9fca 100644 --- a/docs/topics/http/middleware.txt +++ b/docs/topics/http/middleware.txt @@ -291,8 +291,6 @@ object with a :attr:`~django.http.HttpResponse.status_code` of 404. Asynchronous support ==================== -.. versionadded:: 3.1 - Middleware can support any combination of synchronous and asynchronous requests. Django will adapt requests to fit the middleware's requirements if it cannot support both, but at a performance penalty. @@ -423,7 +421,3 @@ These are the behavioral differences between using :setting:`MIDDLEWARE` and HTTP response, and then the next middleware in line will see that response. Middleware are never skipped due to a middleware raising an exception. - -.. versionchanged:: 3.1 - - Support for asynchronous requests was added to the ``MiddlewareMixin``. diff --git a/docs/topics/http/urls.txt b/docs/topics/http/urls.txt index 31671db81d..6ab915cfd0 100644 --- a/docs/topics/http/urls.txt +++ b/docs/topics/http/urls.txt @@ -157,10 +157,6 @@ A converter is a class that includes the following: and as a consequence :func:`~django.urls.reverse` will raise :class:`~django.urls.NoReverseMatch` unless another URL pattern matches. - .. versionchanged:: 3.1 - - Support for raising ``ValueError`` to indicate no match was added. - For example:: class FourDigitYearConverter: diff --git a/docs/topics/http/views.txt b/docs/topics/http/views.txt index 554e93386c..656d1ce155 100644 --- a/docs/topics/http/views.txt +++ b/docs/topics/http/views.txt @@ -208,8 +208,6 @@ in a test view. For example:: Async views =========== -.. versionadded:: 3.1 - As well as being synchronous functions, views can also be asynchronous ("async") functions, normally defined using Python's ``async def`` syntax. Django will automatically detect these and run them in an async context. diff --git a/docs/topics/i18n/translation.txt b/docs/topics/i18n/translation.txt index 1819359725..8229e8ffcb 100644 --- a/docs/topics/i18n/translation.txt +++ b/docs/topics/i18n/translation.txt @@ -272,10 +272,6 @@ In a case like this, consider something like the following:: a format specification for argument 'name', as in 'msgstr[0]', doesn't exist in 'msgid' -.. versionchanged: 2.2.12 - - Added support for different plural equations in ``.po`` files. - .. _contextual-markers: Contextual markers @@ -626,11 +622,6 @@ using the ``context`` keyword: {% translate "May" context "month name" %} -.. versionchanged:: 3.1 - - The ``trans`` tag was renamed to ``translate``. The ``trans`` - tag is still supported as an alias for backwards compatibility. - .. templatetag:: blocktrans .. templatetag:: blocktranslate @@ -749,11 +740,6 @@ will result in the entry ``"First sentence. Second paragraph."`` in the PO file, compared to ``"\n First sentence.\n Second paragraph.\n"``, if the ``trimmed`` option had not been specified. -.. versionchanged:: 3.1 - - The ``blocktrans`` tag was renamed to ``blocktranslate``. The ``blocktrans`` - tag is still supported as an alias for backwards compatibility. - String literals passed to tags and filters ------------------------------------------ @@ -1817,12 +1803,6 @@ set, to ``/``, depending on the nature of the request: the ``next`` parameter was set. Otherwise a 204 status code (No Content) will be returned. -.. versionchanged:: 3.1 - - In older versions, the distinction for the fallback is based on whether the - ``X-Requested-With`` header is set to the value ``XMLHttpRequest``. This is - set by the jQuery ``ajax()`` method. - Here's example HTML template code: .. code-block:: html+django diff --git a/docs/topics/serialization.txt b/docs/topics/serialization.txt index 9ef851368a..55cb505472 100644 --- a/docs/topics/serialization.txt +++ b/docs/topics/serialization.txt @@ -277,11 +277,6 @@ function:: Also note that GeoDjango provides a :doc:`customized GeoJSON serializer </ref/contrib/gis/serializers>`. -.. versionchanged:: 3.1 - - All data is now dumped with Unicode. If you need the previous behavior, - pass ``ensure_ascii=True`` to the ``serializers.serialize()`` function. - ``DjangoJSONEncoder`` ~~~~~~~~~~~~~~~~~~~~~ @@ -341,11 +336,6 @@ again a mapping with the key being name of the field and the value the value:: Referential fields are again represented by the PK or sequence of PKs. -.. versionchanged:: 3.1 - - All data is now dumped with Unicode. If you need the previous behavior, - pass ``allow_unicode=False`` to the ``serializers.serialize()`` function. - .. _topics-serialization-natural-keys: Natural keys diff --git a/docs/topics/signing.txt b/docs/topics/signing.txt index 2fc49ab747..6e4a61d2c4 100644 --- a/docs/topics/signing.txt +++ b/docs/topics/signing.txt @@ -101,10 +101,6 @@ generate signatures. You can use a different secret by passing it to the and underscores. ``algorithm`` must be an algorithm supported by :py:mod:`hashlib`, it defaults to ``'sha256'``. - .. versionchanged:: 3.1 - - The ``algorithm`` parameter was added. - .. versionchanged:: 3.2 The ``sign_object()`` and ``unsign_object()`` methods were added. @@ -197,10 +193,6 @@ created within a specified period of time:: otherwise raises ``SignatureExpired``. The ``max_age`` parameter can accept an integer or a :py:class:`datetime.timedelta` object. - .. versionchanged:: 3.1 - - The ``algorithm`` parameter was added. - .. _signing-complex-data: Protecting complex data structures diff --git a/docs/topics/testing/advanced.txt b/docs/topics/testing/advanced.txt index 54fed92168..1fa3423139 100644 --- a/docs/topics/testing/advanced.txt +++ b/docs/topics/testing/advanced.txt @@ -573,10 +573,6 @@ execute and tear down the test suite. custom arguments by calling ``parser.add_argument()`` inside the method, so that the :djadmin:`test` command will be able to use those arguments. - .. versionadded:: 3.1 - - The ``buffer`` argument was added. - .. versionadded:: 3.2 The ``enable_faulthandler`` and ``timing`` arguments were added. @@ -671,10 +667,6 @@ Methods Runs the :doc:`system checks </topics/checks>` on the test ``databases``. - .. versionadded:: 3.1 - - The ``databases`` parameter was added. - .. method:: DiscoverRunner.run_suite(suite, **kwargs) Runs the test suite. diff --git a/docs/topics/testing/tools.txt b/docs/topics/testing/tools.txt index 678eb260aa..82f287fe71 100644 --- a/docs/topics/testing/tools.txt +++ b/docs/topics/testing/tools.txt @@ -769,11 +769,6 @@ If your tests make any database queries, use subclasses :exc:`unittest.SkipTest` in ``setUpClass()``, be sure to do it before calling ``super()`` to avoid this. -.. versionchanged:: 3.1 - - The ``debug()`` method was implemented to allow running a test without - collecting the result and catching exceptions. - ``TransactionTestCase`` ----------------------- @@ -1806,8 +1801,6 @@ won't be run. Testing asynchronous code ========================= -.. versionadded:: 3.1 - If you merely want to test the output of your asynchronous views, the standard test client will run them inside their own asynchronous loop without any extra work needed on your part. |
