django-orchestra/orchestra/contrib/issues/settings.py

17 lines
500 B
Python
Raw Permalink Normal View History

2023-07-09 07:51:51 +00:00
from django.core.validators import validate_email
from orchestra.contrib.settings import Setting
from orchestra.settings import ORCHESTRA_DEFAULT_SUPPORT_FROM_EMAIL
ISSUES_SUPPORT_EMAILS = Setting('ISSUES_SUPPORT_EMAILS',
(ORCHESTRA_DEFAULT_SUPPORT_FROM_EMAIL,),
validators=[lambda emails: [validate_email(e) for e in emails]],
help_text="Includes <tt>ORCHESTRA_DEFAULT_SUPPORT_FROM_EMAIL</tt> by default",
)
ISSUES_NOTIFY_SUPERUSERS = Setting('ISSUES_NOTIFY_SUPERUSERS',
True
)