Cosmetic edits to docs/releases/3.1.txt.

This commit is contained in:
Mariusz Felisiak 2020-05-12 07:15:05 +02:00
parent a9e589030a
commit 0b938cb7d2
1 changed files with 13 additions and 12 deletions

View File

@ -67,7 +67,7 @@ It should have no noticeable effect on any existing Django projects.
JSONField for all supported database backends JSONField for all supported database backends
--------------------------------------------- ---------------------------------------------
Django now includes the :class:`.models.JSONField` and Django now includes :class:`.models.JSONField` and
:class:`forms.JSONField <django.forms.JSONField>` that can be used on all :class:`forms.JSONField <django.forms.JSONField>` that can be used on all
supported database backends. Both fields support the use of custom JSON supported database backends. Both fields support the use of custom JSON
encoders and decoders. The model field supports the introspection, lookups, and encoders and decoders. The model field supports the introspection, lookups, and
@ -89,7 +89,7 @@ Minor features
:attr:`.ModelAdmin.list_filter` allows filtering on empty values (empty :attr:`.ModelAdmin.list_filter` allows filtering on empty values (empty
strings and nulls) in the admin changelist view. strings and nulls) in the admin changelist view.
* Filters in the right sidebar of the admin changelist view now contains a link * Filters in the right sidebar of the admin changelist view now contain a link
to clear all filters. to clear all filters.
* The admin now has a sidebar on larger screens for easier navigation. It is * The admin now has a sidebar on larger screens for easier navigation. It is
@ -108,10 +108,10 @@ Minor features
* The default iteration count for the PBKDF2 password hasher is increased from * The default iteration count for the PBKDF2 password hasher is increased from
180,000 to 216,000. 180,000 to 216,000.
* Added the :setting:`PASSWORD_RESET_TIMEOUT` setting to define the number of * The new :setting:`PASSWORD_RESET_TIMEOUT` setting allows defining the number
seconds a password reset link is valid for. This is encouraged instead of of seconds a password reset link is valid for. This is encouraged instead of
deprecated ``PASSWORD_RESET_TIMEOUT_DAYS``, which will be removed in Django the deprecated ``PASSWORD_RESET_TIMEOUT_DAYS`` setting, which will be removed
4.0. in Django 4.0.
* The password reset mechanism now uses the SHA-256 hashing algorithm. Support * The password reset mechanism now uses the SHA-256 hashing algorithm. Support
for tokens that use the old hashing algorithm remains until Django 4.0. for tokens that use the old hashing algorithm remains until Django 4.0.
@ -160,8 +160,9 @@ Minor features
:class:`~django.contrib.postgres.fields.RangeField`. :class:`~django.contrib.postgres.fields.RangeField`.
* The new :lookup:`rangefield.lower_inc`, :lookup:`rangefield.lower_inf`, * The new :lookup:`rangefield.lower_inc`, :lookup:`rangefield.lower_inf`,
:lookup:`rangefield.upper_inc`, and :lookup:`rangefield.upper_inf` allows :lookup:`rangefield.upper_inc`, and :lookup:`rangefield.upper_inf` lookups
querying :class:`~django.contrib.postgres.fields.RangeField` by a bound type. allow querying :class:`~django.contrib.postgres.fields.RangeField` by a bound
type.
* :lookup:`rangefield.contained_by` now supports * :lookup:`rangefield.contained_by` now supports
:class:`~django.db.models.SmallAutoField`, :class:`~django.db.models.SmallAutoField`,
@ -619,7 +620,7 @@ Miscellaneous
* The undocumented ``django.views.debug.ExceptionReporterFilter`` class is * The undocumented ``django.views.debug.ExceptionReporterFilter`` class is
removed. As per the :ref:`custom-error-reports` documentation, classes to be removed. As per the :ref:`custom-error-reports` documentation, classes to be
used with :setting:`DEFAULT_EXCEPTION_REPORTER_FILTER` needs to inherit from used with :setting:`DEFAULT_EXCEPTION_REPORTER_FILTER` need to inherit from
:class:`django.views.debug.SafeExceptionReporterFilter`. :class:`django.views.debug.SafeExceptionReporterFilter`.
* The cache timeout set by :func:`~django.views.decorators.cache.cache_page` * The cache timeout set by :func:`~django.views.decorators.cache.cache_page`
@ -642,9 +643,9 @@ Miscellaneous
* The admin CSS classes ``row1`` and ``row2`` are removed in favor of * The admin CSS classes ``row1`` and ``row2`` are removed in favor of
``:nth-child(odd)`` and ``:nth-child(even)`` pseudo-classes. ``:nth-child(odd)`` and ``:nth-child(even)`` pseudo-classes.
* The :func:`~django.contrib.auth.hashers.make_password` now requires its * The :func:`~django.contrib.auth.hashers.make_password` function now requires
argument to be a string or bytes. Other types should be explicitly cast to its argument to be a string or bytes. Other types should be explicitly cast
one of these. to one of these.
* The undocumented ``version`` parameter to the * The undocumented ``version`` parameter to the
:class:`~django.contrib.gis.db.models.functions.AsKML` function is removed. :class:`~django.contrib.gis.db.models.functions.AsKML` function is removed.