Skip to content

Commit

Permalink
Merge pull request #282 from pfouque/fix_nullable_field_admin
Browse files Browse the repository at this point in the history
Make eml field Blankable
  • Loading branch information
pfouque authored Dec 17, 2023
2 parents 3b505ac + 0f82c95 commit 8c664a4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions django_mailbox/migrations/0009_alter_message_eml.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.23 on 2023-12-16 23:27

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('django_mailbox', '0008_auto_20190219_1553'),
]

operations = [
migrations.AlterField(
model_name='message',
name='eml',
field=models.FileField(blank=True, help_text='Original full content of message', null=True, upload_to='messages', verbose_name='Raw message contents'),
),
]
1 change: 1 addition & 0 deletions django_mailbox/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,7 @@ class Message(models.Model):
eml = models.FileField(
_('Raw message contents'),
null=True,
blank=True,
upload_to="messages",
help_text=_('Original full content of message')
)
Expand Down
Empty file modified manage.py
100644 → 100755
Empty file.

0 comments on commit 8c664a4

Please sign in to comment.