Skip to content

Commit 189ea25

Browse files
authored
Increase max_length of Mailbox.uri
2 parents eec7fb7 + eac0d5c commit 189ea25

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Generated by Django 3.2.25 on 2026-06-23 09:18
2+
3+
from django.db import migrations, models
4+
5+
6+
class Migration(migrations.Migration):
7+
8+
dependencies = [
9+
('django_mailbox', '0009_alter_message_eml'),
10+
]
11+
12+
operations = [
13+
migrations.AlterField(
14+
model_name='mailbox',
15+
name='uri',
16+
field=models.CharField(blank=True, default=None, help_text="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).", max_length=2048, null=True, verbose_name='URI'),
17+
),
18+
]

django_mailbox/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class Mailbox(models.Model):
6464

6565
uri = models.CharField(
6666
_('URI'),
67-
max_length=255,
67+
max_length=2048,
6868
help_text=(_(
6969
"Example: imap+ssl://myusername:mypassword@someserver <br />"
7070
"<br />"

0 commit comments

Comments
 (0)