mirror of
https://github.com/django/django.git
synced 2025-09-25 07:59:11 +00:00
Refs #36163 -- Removed currentmodule directive from 6.0 release notes.
This commit is contained in:
parent
2e870c6071
commit
f2e0219867
@ -488,20 +488,18 @@ Features deprecated in 6.0
|
|||||||
Positional arguments in ``django.core.mail`` APIs
|
Positional arguments in ``django.core.mail`` APIs
|
||||||
-------------------------------------------------
|
-------------------------------------------------
|
||||||
|
|
||||||
.. currentmodule:: django.core.mail
|
|
||||||
|
|
||||||
:mod:`django.core.mail` APIs now require keyword arguments for less commonly
|
:mod:`django.core.mail` APIs now require keyword arguments for less commonly
|
||||||
used parameters. Using positional arguments for these now emits a deprecation
|
used parameters. Using positional arguments for these now emits a deprecation
|
||||||
warning and will raise a :exc:`TypeError` when the deprecation period ends:
|
warning and will raise a :exc:`TypeError` when the deprecation period ends:
|
||||||
|
|
||||||
* All *optional* parameters (``fail_silently`` and later) must be passed as
|
* All *optional* parameters (``fail_silently`` and later) must be passed as
|
||||||
keyword arguments to :func:`get_connection`, :func:`mail_admins`,
|
keyword arguments to :func:`.get_connection`, :func:`.mail_admins`,
|
||||||
:func:`mail_managers`, :func:`send_mail`, and :func:`send_mass_mail`.
|
:func:`.mail_managers`, :func:`.send_mail`, and :func:`.send_mass_mail`.
|
||||||
|
|
||||||
* All parameters must be passed as keyword arguments when creating an
|
* All parameters must be passed as keyword arguments when creating an
|
||||||
:class:`EmailMessage` or :class:`EmailMultiAlternatives` instance, except for
|
:class:`.EmailMessage` or :class:`.EmailMultiAlternatives` instance, except
|
||||||
the first four (``subject``, ``body``, ``from_email``, and ``to``), which may
|
for the first four (``subject``, ``body``, ``from_email``, and ``to``), which
|
||||||
still be passed either as positional or keyword arguments.
|
may still be passed either as positional or keyword arguments.
|
||||||
|
|
||||||
Miscellaneous
|
Miscellaneous
|
||||||
-------------
|
-------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user