1
0
mirror of https://github.com/django/django.git synced 2025-09-15 05:29:11 +00:00

[5.2.x] Fixed get_connection() signature in docs/topics/email.txt.

django.core.mail.get_connection() has always supported only variable
keyword arguments (never variable positional arguments).

Backport of 5289ce65b9a1963707767cc11c476679ab445135 from main.
This commit is contained in:
Mike Edmunds 2025-07-16 14:12:03 -07:00 committed by Natalia
parent a76587531b
commit 6966adc519

View File

@ -582,7 +582,7 @@ instance of the email backend that you can use.
.. currentmodule:: django.core.mail
.. function:: get_connection(backend=None, fail_silently=False, *args, **kwargs)
.. function:: get_connection(backend=None, fail_silently=False, **kwargs)
By default, a call to ``get_connection()`` will return an instance of the
email backend specified in :setting:`EMAIL_BACKEND`. If you specify the
@ -592,7 +592,7 @@ The ``fail_silently`` argument controls how the backend should handle errors.
If ``fail_silently`` is True, exceptions during the email sending process
will be silently ignored.
All other arguments are passed directly to the constructor of the
All other keyword arguments are passed directly to the constructor of the
email backend.
Django ships with several email sending backends. With the exception of the