mirror of
https://github.com/django/django.git
synced 2025-03-13 10:50:55 +00:00
Made cosmetic edits to 5.2 release notes, including line wrapping at 79 cols.
This commit is contained in:
parent
037e740ec5
commit
2debd018db
@ -48,8 +48,8 @@ Minor features
|
|||||||
format ``:role:`link text <link>```. See :ref:`documentation helpers
|
format ``:role:`link text <link>```. See :ref:`documentation helpers
|
||||||
<admindocs-helpers>` for more details.
|
<admindocs-helpers>` for more details.
|
||||||
|
|
||||||
* The :ref:`model pages <admindocs-model-reference>` are now restricted to only
|
* The :ref:`model pages <admindocs-model-reference>` are now restricted to
|
||||||
allow access to users with the corresponding model view or change permissions.
|
users with the corresponding view or change permissions.
|
||||||
|
|
||||||
:mod:`django.contrib.auth`
|
:mod:`django.contrib.auth`
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
@ -83,8 +83,8 @@ Minor features
|
|||||||
|
|
||||||
* Auth backends can now provide async implementations which are used when
|
* Auth backends can now provide async implementations which are used when
|
||||||
calling async auth functions (e.g.
|
calling async auth functions (e.g.
|
||||||
:func:`~.django.contrib.auth.aauthenticate`) to reduce context-switching which
|
:func:`~.django.contrib.auth.aauthenticate`) to reduce context-switching
|
||||||
improves performance. See :ref:`adding an async interface
|
which improves performance. See :ref:`adding an async interface
|
||||||
<writing-authentication-backends-async-interface>` for more details.
|
<writing-authentication-backends-async-interface>` for more details.
|
||||||
|
|
||||||
* The :ref:`password validator classes <included-password-validators>`
|
* The :ref:`password validator classes <included-password-validators>`
|
||||||
@ -246,10 +246,9 @@ Logging
|
|||||||
Management Commands
|
Management Commands
|
||||||
~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
* A new warning is printed to the console when running :djadmin:`runserver` that
|
* A new warning is displayed when running :djadmin:`runserver`, indicating that
|
||||||
``runserver`` is unsuitable for production. This warning can be hidden by
|
it is unsuitable for production. This warning can be suppressed by setting
|
||||||
setting the :envvar:`HIDE_PRODUCTION_WARNING` environment variable to
|
the :envvar:`HIDE_PRODUCTION_WARNING` environment variable to ``"true"``.
|
||||||
``"true"``.
|
|
||||||
|
|
||||||
* The :djadmin:`makemigrations` and :djadmin:`migrate` commands have a new
|
* The :djadmin:`makemigrations` and :djadmin:`migrate` commands have a new
|
||||||
``Command.autodetector`` attribute for subclasses to override in order to use
|
``Command.autodetector`` attribute for subclasses to override in order to use
|
||||||
@ -263,13 +262,11 @@ Migrations
|
|||||||
Models
|
Models
|
||||||
~~~~~~
|
~~~~~~
|
||||||
|
|
||||||
* The ``SELECT`` clause generated when using
|
* The ``SELECT`` clause generated when using :meth:`.QuerySet.values` and
|
||||||
:meth:`QuerySet.values()<django.db.models.query.QuerySet.values>` and
|
:meth:`.QuerySet.values_list` now matches the specified order of the
|
||||||
:meth:`~django.db.models.query.QuerySet.values_list` now matches the
|
referenced expressions. Previously, the order was based of a set of
|
||||||
specified order of the referenced expressions. Previously the order was based
|
counterintuitive rules which made query combination through methods such as
|
||||||
of a set of counterintuitive rules which made query combination through
|
:meth:`.QuerySet.union` unpredictable.
|
||||||
methods such as
|
|
||||||
:meth:`QuerySet.union()<django.db.models.query.QuerySet.union>` unpredictable.
|
|
||||||
|
|
||||||
* Added support for validation of model constraints which use a
|
* Added support for validation of model constraints which use a
|
||||||
:class:`~django.db.models.GeneratedField`.
|
:class:`~django.db.models.GeneratedField`.
|
||||||
@ -288,8 +285,8 @@ Models
|
|||||||
Requests and Responses
|
Requests and Responses
|
||||||
~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
* The new :attr:`.HttpResponse.text` property provides the string representation
|
* The new :attr:`.HttpResponse.text` property provides the string
|
||||||
of :attr:`.HttpResponse.content`.
|
representation of :attr:`.HttpResponse.content`.
|
||||||
|
|
||||||
* The new :meth:`.HttpRequest.get_preferred_type` method can be used to query
|
* The new :meth:`.HttpRequest.get_preferred_type` method can be used to query
|
||||||
the preferred media type the client accepts.
|
the preferred media type the client accepts.
|
||||||
@ -396,13 +393,13 @@ Miscellaneous
|
|||||||
|
|
||||||
* The minimum supported version of ``gettext`` is increased from 0.15 to 0.19.
|
* The minimum supported version of ``gettext`` is increased from 0.15 to 0.19.
|
||||||
|
|
||||||
* ``HttpRequest.accepted_types`` is now sorted by the client's preference, based
|
* ``HttpRequest.accepted_types`` is now sorted by the client's preference,
|
||||||
on the request's ``Accept`` header.
|
based on the request's ``Accept`` header.
|
||||||
|
|
||||||
* :attr:`.UniqueConstraint.violation_error_code` and
|
* The attributes :attr:`.UniqueConstraint.violation_error_code` and
|
||||||
:attr:`.UniqueConstraint.violation_error_message` are now always used when
|
:attr:`.UniqueConstraint.violation_error_message` are now always used when
|
||||||
provided. Previously, these were ignored when :attr:`.UniqueConstraint.fields`
|
provided. Previously, they were ignored if :attr:`.UniqueConstraint.fields`
|
||||||
were set without a :attr:`.UniqueConstraint.condition`.
|
was set without a :attr:`.UniqueConstraint.condition`.
|
||||||
|
|
||||||
* The :func:`~django.template.context_processors.debug` context processor is no
|
* The :func:`~django.template.context_processors.debug` context processor is no
|
||||||
longer included in the default project template.
|
longer included in the default project template.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user