Commit 64d3246d273d10f792dc42e7fcfe2d3efb02babc
1 parent
f9174938
Exists in
master
and in
5 other branches
Form Email Backend #212
Showing
1 changed file
with
17 additions
and
0 deletions
Show diff stats
@@ -0,0 +1,17 @@ | @@ -0,0 +1,17 @@ | ||
1 | +from django import forms | ||
2 | +from .models import EmailBackend | ||
3 | +from django.utils.translation import ugettext_lazy as _ | ||
4 | + | ||
5 | +class EmailBackendForm(forms.ModelForm): | ||
6 | + | ||
7 | + class Meta: | ||
8 | + model = EmailBackend | ||
9 | + fields = ('description', 'host', 'port', 'username', 'password', 'safe_conection', 'default_from_email') | ||
10 | + help_texts = { | ||
11 | + 'host': _('A host name. Example: smtp.gmail.com'), | ||
12 | + 'port': _('A port number'), | ||
13 | + 'usermane': _('Your host username'), | ||
14 | + 'password': _('Your host password'), | ||
15 | + } | ||
16 | + | ||
17 | + | ||
0 | \ No newline at end of file | 18 | \ No newline at end of file |