a couple small adjustments here and there.

This commit is contained in:
Jonas Winkler
2020-11-18 20:41:42 +01:00
parent e59696efd4
commit 87e83eb71b
5 changed files with 34 additions and 4 deletions

View File

@@ -19,7 +19,11 @@ class MailAccount(models.Model):
imap_server = models.CharField(max_length=256)
imap_port = models.IntegerField(blank=True, null=True)
imap_port = models.IntegerField(
blank=True,
null=True,
help_text="This is usually 143 for unencrypted and STARTTLS "
"connections, and 993 for SSL connections.")
imap_security = models.PositiveIntegerField(
choices=IMAP_SECURITY_OPTIONS,
@@ -68,7 +72,7 @@ class MailRule(models.Model):
(CORRESPONDENT_FROM_CUSTOM, "Use correspondent selected below")
)
name = models.CharField(max_length=256)
name = models.CharField(max_length=256, unique=True)
account = models.ForeignKey(
MailAccount,