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).
This commit is contained in:
Mike Edmunds 2025-07-16 14:12:03 -07:00 committed by nessita
parent a5cd84ad20
commit 5289ce65b9

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