commit 0f26b5a8e0
Author: jorgepastorr <jorge.pastor.rr@gmail.com>
Date: Sun Jul 9 07:51:51 2023 +0000
Repo: https://gitea.pangea.org/pangea/django-orchestra.git
25 lines
548 B
Python
25 lines
548 B
Python
from django.utils.translation import gettext_lazy as _
|
|
|
|
from orchestra.contrib.settings import Setting
|
|
|
|
|
|
MAILER_DEFERE_SECONDS = Setting('MAILER_DEFERE_SECONDS',
|
|
(300, 600, 60*60, 60*60*24),
|
|
)
|
|
|
|
|
|
MAILER_MESSAGES_CLEANUP_DAYS = Setting('MAILER_MESSAGES_CLEANUP_DAYS',
|
|
7
|
|
)
|
|
|
|
|
|
MAILER_NON_QUEUED_PER_REQUEST_THRESHOLD = Setting('MAILER_NON_QUEUED_PER_REQUEST_THRESHOLD',
|
|
2,
|
|
help_text=_("Number of emails that will be sent immediately before starting to queue them."),
|
|
)
|
|
|
|
|
|
MAILER_BULK_MESSAGES = Setting('MAILER_BULK_MESSAGES',
|
|
500,
|
|
)
|