123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285 |
- ============================================
- Django 3.1 release notes - UNDER DEVELOPMENT
- ============================================
- *Expected August 2020*
- Welcome to Django 3.1!
- These release notes cover the :ref:`new features <whats-new-3.1>`, as well as
- some :ref:`backwards incompatible changes <backwards-incompatible-3.1>` you'll
- want to be aware of when upgrading from Django 3.0 or earlier. We've
- :ref:`dropped some features<removed-features-3.1>` that have reached the end of
- their deprecation cycle, and we've :ref:`begun the deprecation process for
- some features <deprecated-features-3.1>`.
- See the :doc:`/howto/upgrade-version` guide if you're updating an existing
- project.
- Python compatibility
- ====================
- Django 3.1 supports Python 3.6, 3.7, and 3.8. We **highly recommend** and only
- officially support the latest release of each series.
- .. _whats-new-3.1:
- What's new in Django 3.1
- ========================
- Minor features
- --------------
- :mod:`django.contrib.admin`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.admindocs`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.auth`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~
- * The default iteration count for the PBKDF2 password hasher is increased from
- 180,000 to 216,000.
- * Added the :setting:`PASSWORD_RESET_TIMEOUT` setting to define the minimum
- number 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 4.0.
- :mod:`django.contrib.contenttypes`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.gis`
- ~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.messages`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.postgres`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.redirects`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.sessions`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.sitemaps`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.sites`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.staticfiles`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- :mod:`django.contrib.syndication`
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- * ...
- Cache
- ~~~~~
- * ...
- CSRF
- ~~~~
- * ...
- Email
- ~~~~~
- * ...
- File Storage
- ~~~~~~~~~~~~
- * ...
- File Uploads
- ~~~~~~~~~~~~
- * ...
- Forms
- ~~~~~
- * ...
- Generic Views
- ~~~~~~~~~~~~~
- * ...
- Internationalization
- ~~~~~~~~~~~~~~~~~~~~
- * ...
- Logging
- ~~~~~~~
- * ...
- Management Commands
- ~~~~~~~~~~~~~~~~~~~
- * ...
- Migrations
- ~~~~~~~~~~
- * ...
- Models
- ~~~~~~
- * ...
- Pagination
- ~~~~~~~~~~
- * Support for iterating over ``Paginator`` was added.
- Requests and Responses
- ~~~~~~~~~~~~~~~~~~~~~~
- * ...
- Serialization
- ~~~~~~~~~~~~~
- * ...
- Signals
- ~~~~~~~
- * ...
- Templates
- ~~~~~~~~~
- * ...
- Tests
- ~~~~~
- * ...
- URLs
- ~~~~
- * ...
- Validators
- ~~~~~~~~~~
- * ...
- .. _backwards-incompatible-3.1:
- Backwards incompatible changes in 3.1
- =====================================
- Database backend API
- --------------------
- This section describes changes that may be needed in third-party database
- backends.
- * ``DatabaseOperations.fetch_returned_insert_columns()`` now requires an
- additional ``returning_params`` argument.
- Miscellaneous
- -------------
- * The cache keys used by :ttag:`cache` and generated by
- :func:`~django.core.cache.utils.make_template_fragment_key` are different
- from the keys generated by older versions of Django. After upgrading to
- Django 3.1, the first request to any previously cached template fragment will
- be a cache miss.
- * The compatibility imports of ``django.core.exceptions.EmptyResultSet`` in
- ``django.db.models.query``, ``django.db.models.sql``, and
- ``django.db.models.sql.datastructures`` are removed.
- * The compatibility import of ``django.core.exceptions.FieldDoesNotExist`` in
- ``django.db.models.fields`` is removed.
- * The compatibility imports of ``django.forms.utils.pretty_name()`` and
- ``django.forms.boundfield.BoundField`` in ``django.forms.forms`` are removed.
- * The compatibility imports of ``Context``, ``ContextPopException``, and
- ``RequestContext`` in ``django.template.base`` are removed.
- * The :setting:`STATIC_URL` and :setting:`MEDIA_URL` settings set to relative
- paths are now prefixed by the server-provided value of ``SCRIPT_NAME`` (or
- ``/`` if not set). This change should not affect settings set to valid URLs
- or absolute paths.
- .. _deprecated-features-3.1:
- Features deprecated in 3.1
- ==========================
- Miscellaneous
- -------------
- * ``PASSWORD_RESET_TIMEOUT_DAYS`` setting is deprecated in favor of
- :setting:`PASSWORD_RESET_TIMEOUT`.
- .. _removed-features-3.1:
- Features removed in 3.1
- =======================
- These features have reached the end of their deprecation cycle and are removed
- in Django 3.1.
- See :ref:`deprecated-features-2.2` for details on these changes, including how
- to remove usage of these features.
- * ``django.utils.timezone.FixedOffset`` is removed.
- * ``django.core.paginator.QuerySetPaginator`` is removed.
- * A model's ``Meta.ordering`` doesn't affect ``GROUP BY`` queries.
- * ``django.contrib.postgres.fields.FloatRangeField`` and
- ``django.contrib.postgres.forms.FloatRangeField`` are removed.
- * The ``FILE_CHARSET`` setting is removed.
- * ``django.contrib.staticfiles.storage.CachedStaticFilesStorage`` is removed.
- * The ``RemoteUserBackend.configure_user()`` method requires ``request`` as the
- first positional argument.
- * Support for ``SimpleTestCase.allow_database_queries`` and
- ``TransactionTestCase.multi_db`` is removed.
|