0001-emails-correct-help-text-on-email-prefix-field-44565.patch
hobo/emails/forms.py | ||
---|---|---|
25 | 25 |
validate_email(value) |
26 | 26 |
validate_email_address(value) |
27 | 27 |
validate_email_spf(value) |
28 | 28 | |
29 | 29 | |
30 | 30 |
class EmailsForm(forms.Form): |
31 | 31 |
default_from_email = ValidEmailField(label=_('Default From')) |
32 | 32 |
global_email_prefix = forms.CharField(label=_('Prefix'), required=False, |
33 |
help_text=_('Custom prefix for emails subject (defaults to plateform title)'))
|
|
33 |
help_text=_('Custom prefix for emails subject (defaults to global title)'))
|
|
34 | 34 |
email_signature = forms.CharField(label=_('Signature'), required=False, |
35 | 35 |
widget=forms.Textarea) |
36 | 36 | |
37 | 37 |
def __init__(self, *args, **kwargs): |
38 | 38 |
super(EmailsForm, self).__init__(*args, **kwargs) |
39 | 39 |
self.fields['email_signature'].widget.attrs = {'rows': 4, 'cols': 80} |
40 |
- |