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

17 lines
500 B
Python
Raw Permalink Normal View History

from django.core.validators import validate_email
2015-05-04 19:52:53 +00:00
from orchestra.contrib.settings import Setting
from orchestra.settings import ORCHESTRA_DEFAULT_SUPPORT_FROM_EMAIL
2014-05-08 16:59:35 +00:00
2015-04-27 14:54:17 +00:00
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",
2015-04-27 14:54:17 +00:00
)
2014-05-08 16:59:35 +00:00
2015-04-27 14:54:17 +00:00
ISSUES_NOTIFY_SUPERUSERS = Setting('ISSUES_NOTIFY_SUPERUSERS',
True
)