4.2.txt 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  1. ============================================
  2. Django 4.2 release notes - UNDER DEVELOPMENT
  3. ============================================
  4. *Expected April 2023*
  5. Welcome to Django 4.2!
  6. These release notes cover the :ref:`new features <whats-new-4.2>`, as well as
  7. some :ref:`backwards incompatible changes <backwards-incompatible-4.2>` you'll
  8. want to be aware of when upgrading from Django 4.1 or earlier. We've
  9. :ref:`begun the deprecation process for some features
  10. <deprecated-features-4.2>`.
  11. See the :doc:`/howto/upgrade-version` guide if you're updating an existing
  12. project.
  13. Django 4.2 is designated as a :term:`long-term support release
  14. <Long-term support release>`. It will receive security updates for at least
  15. three years after its release. Support for the previous LTS, Django 3.2, will
  16. end in April 2024.
  17. Python compatibility
  18. ====================
  19. Django 4.2 supports Python 3.8, 3.9, 3.10, and 3.11. We **highly recommend**
  20. and only officially support the latest release of each series.
  21. .. _whats-new-4.2:
  22. What's new in Django 4.2
  23. ========================
  24. Psycopg 3 support
  25. -----------------
  26. Django now supports `psycopg`_ version 3.1.8 or higher. To update your code,
  27. install the `psycopg library`_, you don't need to change the
  28. :setting:`ENGINE <DATABASE-ENGINE>` as ``django.db.backends.postgresql``
  29. supports both libraries.
  30. Support for ``psycopg2`` is likely to be deprecated and removed at some point
  31. in the future.
  32. .. _psycopg: https://www.psycopg.org/psycopg3/
  33. .. _psycopg library: https://pypi.org/project/psycopg/
  34. Comments on columns and tables
  35. ------------------------------
  36. The new :attr:`Field.db_comment <django.db.models.Field.db_comment>` and
  37. :attr:`Meta.db_table_comment <django.db.models.Options.db_table_comment>`
  38. options allow creating comments on columns and tables, respectively. For
  39. example::
  40. from django.db import models
  41. class Question(models.Model):
  42. text = models.TextField(db_comment="Poll question")
  43. pub_date = models.DateTimeField(
  44. db_comment="Date and time when the question was published",
  45. )
  46. class Meta:
  47. db_table_comment = "Poll questions"
  48. class Answer(models.Model):
  49. question = models.ForeignKey(
  50. Question,
  51. on_delete=models.CASCADE,
  52. db_comment="Reference to a question",
  53. )
  54. answer = models.TextField(db_comment="Question answer")
  55. class Meta:
  56. db_table_comment = "Question answers"
  57. Also, the new :class:`~django.db.migrations.operations.AlterModelTableComment`
  58. operation allows changing table comments defined in the
  59. :attr:`Meta.db_table_comment <django.db.models.Options.db_table_comment>`.
  60. Mitigation for the BREACH attack
  61. --------------------------------
  62. :class:`~django.middleware.gzip.GZipMiddleware` now includes a mitigation for
  63. the BREACH attack. It will add up to 100 random bytes to gzip responses to make
  64. BREACH attacks harder. Read more about the mitigation technique in the `Heal
  65. The Breach (HTB) paper`_.
  66. .. _Heal The Breach (HTB) paper: https://ieeexplore.ieee.org/document/9754554
  67. In-memory file storage
  68. ----------------------
  69. The new :class:`django.core.files.storage.InMemoryStorage` class provides a
  70. non-persistent storage useful for speeding up tests by avoiding disk access.
  71. Custom file storages
  72. --------------------
  73. The new :setting:`STORAGES` setting allows configuring multiple custom file
  74. storage backends. It also controls storage engines for managing
  75. :doc:`files </topics/files>` (the ``"default"`` key) and :doc:`static files
  76. </ref/contrib/staticfiles>` (the ``"staticfiles"`` key).
  77. The old ``DEFAULT_FILE_STORAGE`` and ``STATICFILES_STORAGE`` settings are
  78. deprecated as of this release.
  79. Minor features
  80. --------------
  81. :mod:`django.contrib.admin`
  82. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  83. * The light or dark color theme of the admin can now be toggled in the UI, as
  84. well as being set to follow the system setting.
  85. * The admin's font stack now prefers system UI fonts and no longer requires
  86. downloading fonts. Additionally, CSS variables are available to more easily
  87. override the default font families.
  88. * The :source:`admin/delete_confirmation.html
  89. <django/contrib/admin/templates/admin/delete_confirmation.html>` template now
  90. has some additional blocks and scripting hooks to ease customization.
  91. * The chosen options of
  92. :attr:`~django.contrib.admin.ModelAdmin.filter_horizontal` and
  93. :attr:`~django.contrib.admin.ModelAdmin.filter_vertical` widgets are now
  94. filterable.
  95. * The ``admin/base.html`` template now has a new block ``nav-breadcrumbs``
  96. which contains the navigation landmark and the ``breadcrumbs`` block.
  97. * :attr:`.ModelAdmin.list_editable` now uses atomic transactions when making
  98. edits.
  99. * jQuery is upgraded from version 3.6.0 to 3.6.4.
  100. :mod:`django.contrib.auth`
  101. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  102. * The default iteration count for the PBKDF2 password hasher is increased from
  103. 390,000 to 600,000.
  104. * :class:`~django.contrib.auth.forms.UserCreationForm` now saves many-to-many
  105. form fields for a custom user model.
  106. * The new :class:`~django.contrib.auth.forms.BaseUserCreationForm` is now the
  107. recommended base class for customizing the user creation form.
  108. :mod:`django.contrib.gis`
  109. ~~~~~~~~~~~~~~~~~~~~~~~~~
  110. * The :doc:`GeoJSON serializer </ref/contrib/gis/serializers>` now outputs the
  111. ``id`` key for serialized features, which defaults to the primary key of
  112. objects.
  113. * The :class:`~django.contrib.gis.gdal.GDALRaster` class now supports
  114. :class:`pathlib.Path`.
  115. * The :class:`~django.contrib.gis.geoip2.GeoIP2` class now supports ``.mmdb``
  116. files downloaded from DB-IP.
  117. * The OpenLayers template widget no longer includes inline CSS (which also
  118. removes the former ``map_css`` block) to better comply with a strict Content
  119. Security Policy.
  120. * :class:`~django.contrib.gis.forms.widgets.OpenLayersWidget` is now based on
  121. OpenLayers 7.2.2 (previously 4.6.5).
  122. * The new :lookup:`isempty` lookup and
  123. :class:`IsEmpty() <django.contrib.gis.db.models.functions.IsEmpty>`
  124. expression allow filtering empty geometries on PostGIS.
  125. * The new :class:`FromWKB() <django.contrib.gis.db.models.functions.FromWKB>`
  126. and :class:`FromWKT() <django.contrib.gis.db.models.functions.FromWKT>`
  127. functions allow creating geometries from Well-known binary (WKB) and
  128. Well-known text (WKT) representations.
  129. :mod:`django.contrib.postgres`
  130. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  131. * The new :lookup:`trigram_strict_word_similar` lookup, and the
  132. :class:`TrigramStrictWordSimilarity()
  133. <django.contrib.postgres.search.TrigramStrictWordSimilarity>` and
  134. :class:`TrigramStrictWordDistance()
  135. <django.contrib.postgres.search.TrigramStrictWordDistance>` expressions allow
  136. using trigram strict word similarity.
  137. * The :lookup:`arrayfield.overlap` lookup now supports ``QuerySet.values()``
  138. and ``values_list()`` as a right-hand side.
  139. :mod:`django.contrib.sitemaps`
  140. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  141. * The new :meth:`.Sitemap.get_languages_for_item` method allows customizing the
  142. list of languages for which the item is displayed.
  143. :mod:`django.contrib.staticfiles`
  144. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  145. * :class:`~django.contrib.staticfiles.storage.ManifestStaticFilesStorage` now
  146. replaces paths to JavaScript modules in ``import`` and ``export`` statements
  147. with their hashed counterparts.
  148. * The new :attr:`.ManifestStaticFilesStorage.manifest_hash` attribute provides
  149. a hash over all files in the manifest and changes whenever one of the files
  150. changes.
  151. Database backends
  152. ~~~~~~~~~~~~~~~~~
  153. * The new ``"assume_role"`` option is now supported in :setting:`OPTIONS` on
  154. PostgreSQL to allow specifying the :ref:`session role <database-role>`.
  155. * The new ``"server_side_binding"`` option is now supported in
  156. :setting:`OPTIONS` on PostgreSQL with ``psycopg`` 3.1.8+ to allow using
  157. :ref:`server-side binding cursors <database-server-side-parameters-binding>`.
  158. Error Reporting
  159. ~~~~~~~~~~~~~~~
  160. * The debug page now shows :pep:`exception notes <678>` and
  161. :pep:`fine-grained error locations <657>` on Python 3.11+.
  162. * Session cookies are now treated as credentials and therefore hidden and
  163. replaced with stars (``**********``) in error reports.
  164. Forms
  165. ~~~~~
  166. * :class:`~django.forms.ModelForm` now accepts the new ``Meta`` option
  167. ``formfield_callback`` to customize form fields.
  168. * :func:`~django.forms.models.modelform_factory` now respects the
  169. ``formfield_callback`` attribute of the ``form``’s ``Meta``.
  170. Internationalization
  171. ~~~~~~~~~~~~~~~~~~~~
  172. * Added support and translations for the Central Kurdish (Sorani) language.
  173. * The :class:`~django.middleware.locale.LocaleMiddleware` now respects a
  174. language from the request when :func:`~django.conf.urls.i18n.i18n_patterns`
  175. is used with the ``prefix_default_language`` argument set to ``False``.
  176. Logging
  177. ~~~~~~~
  178. * The :ref:`django-db-logger` logger now logs transaction management queries
  179. (``BEGIN``, ``COMMIT``, and ``ROLLBACK``) at the ``DEBUG`` level.
  180. Management Commands
  181. ~~~~~~~~~~~~~~~~~~~
  182. * :djadmin:`makemessages` command now supports locales with private sub-tags
  183. such as ``nl_NL-x-informal``.
  184. * The new :option:`makemigrations --update` option merges model changes into
  185. the latest migration and optimizes the resulting operations.
  186. Migrations
  187. ~~~~~~~~~~
  188. * Migrations now support serialization of ``enum.Flag`` objects.
  189. Models
  190. ~~~~~~
  191. * ``QuerySet`` now extensively supports filtering against
  192. :ref:`window-functions` with the exception of disjunctive filter lookups
  193. against window functions when performing aggregation.
  194. * :meth:`~.QuerySet.prefetch_related` now supports
  195. :class:`~django.db.models.Prefetch` objects with sliced querysets.
  196. * :ref:`Registering lookups <lookup-registration-api>` on
  197. :class:`~django.db.models.Field` instances is now supported.
  198. * The new ``robust`` argument for :func:`~django.db.transaction.on_commit`
  199. allows performing actions that can fail after a database transaction is
  200. successfully committed.
  201. * The new :class:`KT() <django.db.models.fields.json.KT>` expression represents
  202. the text value of a key, index, or path transform of
  203. :class:`~django.db.models.JSONField`.
  204. * :class:`~django.db.models.functions.Now` now supports microsecond precision
  205. on MySQL and millisecond precision on SQLite.
  206. * :class:`F() <django.db.models.F>` expressions that output ``BooleanField``
  207. can now be negated using ``~F()`` (inversion operator).
  208. * ``Model`` now provides asynchronous versions of some methods that use the
  209. database, using an ``a`` prefix: :meth:`~.Model.adelete`,
  210. :meth:`~.Model.arefresh_from_db`, and :meth:`~.Model.asave`.
  211. * Related managers now provide asynchronous versions of methods that change a
  212. set of related objects, using an ``a`` prefix: :meth:`~.RelatedManager.aadd`,
  213. :meth:`~.RelatedManager.aclear`, :meth:`~.RelatedManager.aremove`, and
  214. :meth:`~.RelatedManager.aset`.
  215. * :attr:`CharField.max_length <django.db.models.CharField.max_length>` is no
  216. longer required to be set on PostgreSQL, which supports unlimited ``VARCHAR``
  217. columns.
  218. Requests and Responses
  219. ~~~~~~~~~~~~~~~~~~~~~~
  220. * :class:`~django.http.StreamingHttpResponse` now supports async iterators
  221. when Django is served via ASGI.
  222. Tests
  223. ~~~~~
  224. * The :option:`test --debug-sql` option now formats SQL queries with
  225. ``sqlparse``.
  226. * The :class:`~django.test.RequestFactory`,
  227. :class:`~django.test.AsyncRequestFactory`, :class:`~django.test.Client`, and
  228. :class:`~django.test.AsyncClient` classes now support the ``headers``
  229. parameter, which accepts a dictionary of header names and values. This allows
  230. a more natural syntax for declaring headers.
  231. .. code-block:: python
  232. # Before:
  233. self.client.get("/home/", HTTP_ACCEPT_LANGUAGE="fr")
  234. await self.async_client.get("/home/", ACCEPT_LANGUAGE="fr")
  235. # After:
  236. self.client.get("/home/", headers={"accept-language": "fr"})
  237. await self.async_client.get("/home/", headers={"accept-language": "fr"})
  238. Utilities
  239. ~~~~~~~~~
  240. * The new ``encoder`` parameter for :meth:`django.utils.html.json_script`
  241. function allows customizing a JSON encoder class.
  242. * The private internal vendored copy of ``urllib.parse.urlsplit()`` now strips
  243. ``'\r'``, ``'\n'``, and ``'\t'`` (see :cve:`2022-0391` and :bpo:`43882`).
  244. This is to protect projects that may be incorrectly using the internal
  245. ``url_has_allowed_host_and_scheme()`` function, instead of using one of the
  246. documented functions for handling URL redirects. The Django functions were
  247. not affected.
  248. * The new :func:`django.utils.http.content_disposition_header` function returns
  249. a ``Content-Disposition`` HTTP header value as specified by :rfc:`6266`.
  250. Validators
  251. ~~~~~~~~~~
  252. * The list of common passwords used by ``CommonPasswordValidator`` is updated
  253. to the most recent version.
  254. .. _backwards-incompatible-4.2:
  255. Backwards incompatible changes in 4.2
  256. =====================================
  257. Database backend API
  258. --------------------
  259. This section describes changes that may be needed in third-party database
  260. backends.
  261. * ``DatabaseFeatures.allows_group_by_pk`` is removed as it only remained to
  262. accommodate a MySQL extension that has been supplanted by proper functional
  263. dependency detection in MySQL 5.7.15. Note that
  264. ``DatabaseFeatures.allows_group_by_selected_pks`` is still supported and
  265. should be enabled if your backend supports functional dependency detection in
  266. ``GROUP BY`` clauses as specified by the ``SQL:1999`` standard.
  267. * :djadmin:`inspectdb` now uses ``display_size`` from
  268. ``DatabaseIntrospection.get_table_description()`` rather than
  269. ``internal_size`` for ``CharField``.
  270. Dropped support for MariaDB 10.3
  271. --------------------------------
  272. Upstream support for MariaDB 10.3 ends in May 2023. Django 4.2 supports MariaDB
  273. 10.4 and higher.
  274. Dropped support for MySQL 5.7
  275. -----------------------------
  276. Upstream support for MySQL 5.7 ends in October 2023. Django 4.2 supports MySQL
  277. 8 and higher.
  278. Dropped support for PostgreSQL 11
  279. ---------------------------------
  280. Upstream support for PostgreSQL 11 ends in November 2023. Django 4.2 supports
  281. PostgreSQL 12 and higher.
  282. Setting ``update_fields`` in ``Model.save()`` may now be required
  283. -----------------------------------------------------------------
  284. In order to avoid updating unnecessary columns,
  285. :meth:`.QuerySet.update_or_create` now passes ``update_fields`` to the
  286. :meth:`Model.save() <django.db.models.Model.save>` calls. As a consequence, any
  287. fields modified in the custom ``save()`` methods should be added to the
  288. ``update_fields`` keyword argument before calling ``super()``. See
  289. :ref:`overriding-model-methods` for more details.
  290. Miscellaneous
  291. -------------
  292. * The undocumented ``SimpleTemplateResponse.rendering_attrs`` and
  293. ``TemplateResponse.rendering_attrs`` are renamed to ``non_picklable_attrs``.
  294. * The undocumented ``django.http.multipartparser.parse_header()`` function is
  295. removed. Use ``django.utils.http.parse_header_parameters()`` instead.
  296. * :ttag:`{% blocktranslate asvar … %}<blocktranslate>` result is now marked as
  297. safe for (HTML) output purposes.
  298. * The ``autofocus`` HTML attribute in the admin search box is removed as it can
  299. be confusing for screen readers.
  300. * The :option:`makemigrations --check` option no longer creates missing
  301. migration files.
  302. * The ``alias`` argument for :meth:`.Expression.get_group_by_cols` is removed.
  303. * The minimum supported version of ``sqlparse`` is increased from 0.2.2 to
  304. 0.3.1.
  305. * The undocumented ``negated`` parameter of the
  306. :class:`~django.db.models.Exists` expression is removed.
  307. * The ``is_summary`` argument of the undocumented ``Query.add_annotation()``
  308. method is removed.
  309. * The minimum supported version of SQLite is increased from 3.9.0 to 3.21.0.
  310. * The minimum supported version of ``asgiref`` is increased from 3.5.2 to
  311. 3.6.0.
  312. * :class:`~django.contrib.auth.forms.UserCreationForm` now rejects usernames
  313. that differ only in case. If you need the previous behavior, use
  314. :class:`~django.contrib.auth.forms.BaseUserCreationForm` instead.
  315. * The minimum supported version of ``mysqlclient`` is increased from 1.4.0 to
  316. 1.4.3.
  317. * The minimum supported version of ``argon2-cffi`` is increased from 19.1.0 to
  318. 19.2.0.
  319. * The minimum supported version of ``Pillow`` is increased from 6.2.0 to 6.2.1.
  320. * The minimum supported version of ``jinja2`` is increased from 2.9.2 to
  321. 2.11.0.
  322. * The minimum supported version of `redis-py`_ is increased from 3.0.0 to
  323. 3.4.0.
  324. * Manually instantiated ``WSGIRequest`` objects must be provided a file-like
  325. object for ``wsgi.input``. Previously, Django was more lax than the expected
  326. behavior as specified by the WSGI specification.
  327. * Support for ``PROJ`` < 5 is removed.
  328. .. _`redis-py`: https://pypi.org/project/redis/
  329. .. _deprecated-features-4.2:
  330. Features deprecated in 4.2
  331. ==========================
  332. ``index_together`` option is deprecated in favor of ``indexes``
  333. ---------------------------------------------------------------
  334. The :attr:`Meta.index_together <django.db.models.Options.index_together>`
  335. option is deprecated in favor of the :attr:`~django.db.models.Options.indexes`
  336. option.
  337. Migrating existing ``index_together`` should be handled as a migration. For
  338. example::
  339. class Author(models.Model):
  340. rank = models.IntegerField()
  341. name = models.CharField(max_length=30)
  342. class Meta:
  343. index_together = [["rank", "name"]]
  344. Should become::
  345. class Author(models.Model):
  346. rank = models.IntegerField()
  347. name = models.CharField(max_length=30)
  348. class Meta:
  349. indexes = [models.Index(fields=["rank", "name"])]
  350. Running the :djadmin:`makemigrations` command will generate a migration
  351. containing a :class:`~django.db.migrations.operations.RenameIndex` operation
  352. which will rename the existing index.
  353. The ``AlterIndexTogether`` migration operation is now officially supported only
  354. for pre-Django 4.2 migration files. For backward compatibility reasons, it's
  355. still part of the public API, and there's no plan to deprecate or remove it,
  356. but it should not be used for new migrations. Use
  357. :class:`~django.db.migrations.operations.AddIndex` and
  358. :class:`~django.db.migrations.operations.RemoveIndex` operations instead.
  359. Passing encoded JSON string literals to ``JSONField`` is deprecated
  360. -------------------------------------------------------------------
  361. ``JSONField`` and its associated lookups and aggregates used to allow passing
  362. JSON encoded string literals which caused ambiguity on whether string literals
  363. were already encoded from database backend's perspective.
  364. During the deprecation period string literals will be attempted to be JSON
  365. decoded and a warning will be emitted on success that points at passing
  366. non-encoded forms instead.
  367. Code that use to pass JSON encoded string literals::
  368. Document.objects.bulk_create(
  369. Document(data=Value("null")),
  370. Document(data=Value("[]")),
  371. Document(data=Value('"foo-bar"')),
  372. )
  373. Document.objects.annotate(
  374. JSONBAgg("field", default=Value("[]")),
  375. )
  376. Should become::
  377. Document.objects.bulk_create(
  378. Document(data=Value(None, JSONField())),
  379. Document(data=[]),
  380. Document(data="foo-bar"),
  381. )
  382. Document.objects.annotate(
  383. JSONBAgg("field", default=[]),
  384. )
  385. From Django 5.1+ string literals will be implicitly interpreted as JSON string
  386. literals.
  387. Miscellaneous
  388. -------------
  389. * The ``BaseUserManager.make_random_password()`` method is deprecated. See
  390. `recipes and best practices
  391. <https://docs.python.org/3/library/secrets.html#recipes-and-best-practices>`_
  392. for using Python's :py:mod:`secrets` module to generate passwords.
  393. * The ``length_is`` template filter is deprecated in favor of :tfilter:`length`
  394. and the ``==`` operator within an :ttag:`{% if %}<if>` tag. For example
  395. .. code-block:: html+django
  396. {% if value|length == 4 %}…{% endif %}
  397. {% if value|length == 4 %}True{% else %}False{% endif %}
  398. instead of:
  399. .. code-block:: html+django
  400. {% if value|length_is:4 %}…{% endif %}
  401. {{ value|length_is:4 }}
  402. * ``django.contrib.auth.hashers.SHA1PasswordHasher``,
  403. ``django.contrib.auth.hashers.UnsaltedSHA1PasswordHasher``, and
  404. ``django.contrib.auth.hashers.UnsaltedMD5PasswordHasher`` are deprecated.
  405. * ``django.contrib.postgres.fields.CICharField`` is deprecated in favor of
  406. ``CharField(db_collation="…")`` with a case-insensitive non-deterministic
  407. collation.
  408. * ``django.contrib.postgres.fields.CIEmailField`` is deprecated in favor of
  409. ``EmailField(db_collation="…")`` with a case-insensitive non-deterministic
  410. collation.
  411. * ``django.contrib.postgres.fields.CITextField`` is deprecated in favor of
  412. ``TextField(db_collation="…")`` with a case-insensitive non-deterministic
  413. collation.
  414. * ``django.contrib.postgres.fields.CIText`` mixin is deprecated.
  415. * The ``map_height`` and ``map_width`` attributes of ``BaseGeometryWidget`` are
  416. deprecated, use CSS to size map widgets instead.
  417. * ``SimpleTestCase.assertFormsetError()`` is deprecated in favor of
  418. ``assertFormSetError()``.
  419. * ``TransactionTestCase.assertQuerysetEqual()`` is deprecated in favor of
  420. ``assertQuerySetEqual()``.
  421. * Passing positional arguments to ``Signer`` and ``TimestampSigner`` is
  422. deprecated in favor of keyword-only arguments.
  423. * The ``DEFAULT_FILE_STORAGE`` setting is deprecated in favor of
  424. ``STORAGES["default"]``.
  425. * The ``STATICFILES_STORAGE`` setting is deprecated in favor of
  426. ``STORAGES["staticfiles"]``.
  427. * The ``django.core.files.storage.get_storage_class()`` function is deprecated.