Made assorted edits to docs/releases/2.0.txt.

This commit is contained in:
Adam Johnson 2017-11-01 15:22:44 +00:00 committed by Tim Graham
parent 7945bc1d08
commit 629dde8db1
1 changed files with 18 additions and 14 deletions

View File

@ -12,9 +12,9 @@ their deprecation cycle, and we've :ref:`begun the deprecation process for some
features <deprecated-features-2.0>`. features <deprecated-features-2.0>`.
This release starts Django's use of a :ref:`loose form of semantic versioning This release starts Django's use of a :ref:`loose form of semantic versioning
<internal-release-cadence>`, however, there aren't any major backwards <internal-release-cadence>`, but there aren't any major backwards incompatible
incompatible changes that might be expected of a 2.0 release. Upgrading should changes that might be expected of a 2.0 release. Upgrading should be a similar
be a similar amount of effort as past feature releases. amount of effort as past feature releases.
See the :doc:`/howto/upgrade-version` guide if you're updating an existing See the :doc:`/howto/upgrade-version` guide if you're updating an existing
project. project.
@ -60,10 +60,13 @@ could be written as::
The new syntax supports type coercion of URL parameters. In the example, the The new syntax supports type coercion of URL parameters. In the example, the
view will receive the ``year`` keyword argument as an integer rather than as view will receive the ``year`` keyword argument as an integer rather than as
a string. a string. Also, the URLs that will match are slightly less constrained in the
rewritten example. For example, the year 10000 will now match since the year
integers aren't constrained to be exactly four digits long as they are in the
regular expression.
The ``django.conf.urls.url()`` function from previous versions is now available The ``django.conf.urls.url()`` function from previous versions is now available
as :func:`django.urls.re_path`, however, the old location remains for backwards as :func:`django.urls.re_path`. The old location remains for backwards
compatibility, without an imminent deprecation. The old compatibility, without an imminent deprecation. The old
``django.conf.urls.include()`` function is now importable from ``django.urls`` ``django.conf.urls.include()`` function is now importable from ``django.urls``
so you can use ``from django.urls import include, path, re_path`` in your so you can use ``from django.urls import include, path, re_path`` in your
@ -75,8 +78,8 @@ and provide more details.
Mobile-friendly ``contrib.admin`` Mobile-friendly ``contrib.admin``
--------------------------------- ---------------------------------
The admin is now responsive and supports all major mobile devices. The admin is now responsive and supports all major mobile devices. Older
Older browsers may experience varying levels of graceful degradation. browsers may experience varying levels of graceful degradation.
Window expressions Window expressions
------------------ ------------------
@ -172,8 +175,8 @@ Minor features
Cache Cache
~~~~~ ~~~~~
* On memcached, ``cache.set_many()`` returns a list of keys that failed to be * ``cache.set_many()`` now returns a list of keys that failed to be inserted.
inserted. For the built-in backends, failed inserts can only happen on memcached.
File Storage File Storage
~~~~~~~~~~~~ ~~~~~~~~~~~~
@ -222,8 +225,8 @@ Management Commands
Migrations Migrations
~~~~~~~~~~ ~~~~~~~~~~
* The new :option:`squashmigrations --squashed-name` option allows naming * The new :option:`squashmigrations --squashed-name` option allows naming the
the squashed migration. squashed migration.
Models Models
~~~~~~ ~~~~~~
@ -242,7 +245,7 @@ Models
controls the number of results Django fetches from the database adapter. controls the number of results Django fetches from the database adapter.
* :meth:`.QuerySet.earliest`, :meth:`.QuerySet.latest`, and * :meth:`.QuerySet.earliest`, :meth:`.QuerySet.latest`, and
:attr:`Meta.get_latest_by <django.db.models.Options.get_latest_by>` now :attr:`Meta.get_latest_by <django.db.models.Options.get_latest_by>` now
allow ordering by several fields. allow ordering by several fields.
* Added the :class:`~django.db.models.functions.ExtractQuarter` function to * Added the :class:`~django.db.models.functions.ExtractQuarter` function to
@ -776,7 +779,8 @@ See :ref:`deprecated-features-1.10` for details on these changes.
* The ``shell --plain`` option is removed. * The ``shell --plain`` option is removed.
* The ``django.core.urlresolvers`` module is removed. * The ``django.core.urlresolvers`` module is removed in favor of its new
location, ``django.urls``.
* ``CommaSeparatedIntegerField`` is removed, except for support in historical * ``CommaSeparatedIntegerField`` is removed, except for support in historical
migrations. migrations.
@ -797,7 +801,7 @@ See :ref:`deprecated-features-1.10` for details on these changes.
* Using ``User.is_authenticated()`` and ``User.is_anonymous()`` as methods * Using ``User.is_authenticated()`` and ``User.is_anonymous()`` as methods
rather than properties is no longer supported. rather than properties is no longer supported.
* The ``Model._meta.virtual_fields`` attribute is removed. * The ``Model._meta.virtual_fields`` attribute is removed.
* The keyword arguments ``virtual_only`` in ``Field.contribute_to_class()`` and * The keyword arguments ``virtual_only`` in ``Field.contribute_to_class()`` and
``virtual`` in ``Model._meta.add_field()`` are removed. ``virtual`` in ``Model._meta.add_field()`` are removed.