From cd1e4de42b5b09dc4576201c43c18f47a7c2dcdb Mon Sep 17 00:00:00 2001 From: Manuel Gomez <34234948+lologf@users.noreply.github.com> Date: Tue, 9 Apr 2019 14:06:01 +0200 Subject: [PATCH] Help text in uri form --- django_mailbox/admin.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/django_mailbox/admin.py b/django_mailbox/admin.py index 857bf21..b953947 100644 --- a/django_mailbox/admin.py +++ b/django_mailbox/admin.py @@ -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 " + "
" + "Example: imap+ssl://myusername:mypassword@someserver
" + "
" + "Internet transports include 'imap' and 'pop3'; " + "common local file transports include 'maildir', 'mbox', " + "and less commonly 'babyl', 'mh', and 'mmdf'.
" + "
" + "Be sure to urlencode your username and password should they " + "contain illegal characters (like @, :, etc)." + ) class Meta: model = Mailbox