Fixed #24970 -- Added --managers and --admins options to the sendtestemail management command.

This commit is contained in:
Rolo 2015-06-16 13:46:56 +01:00 committed by Tim Graham
parent 1c90a3dcca
commit e7b4bd48c7
3 changed files with 89 additions and 13 deletions

View file

@ -902,6 +902,18 @@ recipient(s) specified. For example::
django-admin sendtestemail foo@example.com bar@example.com
.. django-admin-option:: --managers
Use the ``--managers`` option to mail the email addresses specified in
:setting:`MANAGERS` using :meth:`~django.core.mail.mail_managers()`.
.. django-admin-option:: --admins
Use the ``--admins`` option to mail the email addresses specified in
:setting:`ADMINS` using :meth:`~django.core.mail.mail_admins()`.
Note that you may use any combination of these options together.
shell
-----