X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/2444d6ffd7995be782615589fb1d5aef2c8277ce..65779f741add23006d878bf17340ce230463ef6f:/forum/settings/email.py?ds=sidebyside diff --git a/forum/settings/email.py b/forum/settings/email.py index 5e8bddf..b83631e 100644 --- a/forum/settings/email.py +++ b/forum/settings/email.py @@ -2,20 +2,15 @@ from base import Setting, SettingSet from django.utils.translation import ugettext_lazy as _ from django.forms.widgets import PasswordInput from django.forms.widgets import RadioSelect +from forms import TestEmailSettingsWidget EMAIL_SET = SettingSet('email', _('Email settings'), _("Email server and other email related settings."), 50) -EMAIL_SUBSCRIBE_CHOICES = ( - ('y', _('Users are subscribed by default')), - ('n', _('Users are not subscribed by default')), -) - -INITIAL_EMAIL_SUBSCRIBE_OPTION = Setting('INITIAL_EMAIL_SUBSCRIBE_OPTION', 'y', EMAIL_SET, dict( -label = _("Default email subscription"), -widget=RadioSelect, -choices=EMAIL_SUBSCRIBE_CHOICES, -help_text = _("Choose what should be the default email subscription status while registering."), -required=False)) +TEST_EMAIL_SETTINGS = Setting('TEST_EMAIL_SETTINGS', '', EMAIL_SET, dict( +label = _("E-Mail settings test"), +help_text = _("Test the current E-Mail configuration."), +required=False, +widget=TestEmailSettingsWidget)) EMAIL_HOST = Setting('EMAIL_HOST', '', EMAIL_SET, dict( label = _("Email Server"),