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:
committed by
Mariusz Felisiak
parent
8956ee3ce3
commit
e183d6c26c
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user