1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #36597 -- Corrected directives for functions from email module in docs.

Thanks Mike Edmunds for the report.
This commit is contained in:
Mridul Dhall
2025-09-10 14:31:31 +01:00
committed by Mariusz Felisiak
parent 8956ee3ce3
commit e183d6c26c
7 changed files with 23 additions and 23 deletions

View File

@@ -878,7 +878,7 @@ of an SMTPConnection::
messages = get_notification_email()
connection.send_messages(messages)
...should now call :meth:`~django.core.mail.get_connection` to
...should now call :func:`~django.core.mail.get_connection` to
instantiate a generic email connection::
from django.core.mail import get_connection
@@ -900,7 +900,7 @@ SMTP connection::
If your call to construct an instance of ``SMTPConnection`` required
additional arguments, those arguments can be passed to the
:meth:`~django.core.mail.get_connection` call::
:func:`~django.core.mail.get_connection` call::
connection = get_connection(
"django.core.mail.backends.smtp.EmailBackend", hostname="localhost", port=1234

View File

@@ -292,8 +292,8 @@ requests. These include:
* Support for HttpOnly_ cookies.
* :meth:`~django.core.mail.mail_admins` and
:meth:`~django.core.mail.mail_managers` now support easily attaching
* :func:`~django.core.mail.mail_admins` and
:func:`~django.core.mail.mail_managers` now support easily attaching
HTML content to messages.
* :class:`~django.core.mail.EmailMessage` now supports CC's.

View File

@@ -422,7 +422,7 @@ Minor features
* Any ``**kwargs`` passed to
:meth:`~django.contrib.auth.models.User.email_user` are passed to the
underlying :meth:`~django.core.mail.send_mail` call.
underlying :func:`~django.core.mail.send_mail` call.
* The :func:`~django.contrib.auth.decorators.permission_required` decorator can
take a list of permissions as well as a single permission.