1
0
Fork 1
mirror of https://github.com/coddingtonbear/django-mailbox.git synced 2026-07-09 22:38:19 +02:00

Help text in uri form

This commit is contained in:
Manuel Gomez 2019-04-09 14:06:01 +02:00 committed by GitHub
parent e073a8c32c
commit cd1e4de42b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,19 @@ resend_message_received_signal.short_description = (
)
class MailboxForm(forms.ModelForm):
uri = forms.CharField(widget=forms.PasswordInput)
uri = forms.CharField(widget=forms.PasswordInput,
help_text="For security, the URI will not be shown and will "
"be encrypted in database "
"<br />"
"Example: imap+ssl://myusername:mypassword@someserver <br />"
"<br />"
"Internet transports include 'imap' and 'pop3'; "
"common local file transports include 'maildir', 'mbox', "
"and less commonly 'babyl', 'mh', and 'mmdf'. <br />"
"<br />"
"Be sure to urlencode your username and password should they "
"contain illegal characters (like @, :, etc)."
)
class Meta:
model = Mailbox