mirror of
https://github.com/coddingtonbear/django-mailbox.git
synced 2026-07-10 06:48:19 +02:00
fix valuerror of wrapper in get_save_path
This commit is contained in:
parent
02acef8ede
commit
804d91f2ad
4 changed files with 50 additions and 28 deletions
|
|
@ -1,9 +1,9 @@
|
|||
from django.db import migrations, models
|
||||
from functools import partial
|
||||
import django_mailbox.utils
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('django_mailbox', '0004_bytestring_to_unicode'),
|
||||
]
|
||||
|
|
@ -12,6 +12,8 @@ class Migration(migrations.Migration):
|
|||
migrations.AlterField(
|
||||
model_name='messageattachment',
|
||||
name='document',
|
||||
field=models.FileField(upload_to=django_mailbox.utils.get_save_path(setting='attachment_upload_to'), verbose_name='Document'),
|
||||
field=models.FileField(
|
||||
upload_to=partial(django_mailbox.utils.get_save_path, setting='attachment_upload_to'),
|
||||
verbose_name='Document'),
|
||||
),
|
||||
]
|
||||
|
|
|
|||
20
django_mailbox/migrations/0009_auto_20200208_0953.py
Normal file
20
django_mailbox/migrations/0009_auto_20200208_0953.py
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
# Generated by Django 2.2.4 on 2020-02-08 09:53
|
||||
|
||||
from django.db import migrations, models
|
||||
import django_mailbox.utils
|
||||
import functools
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('django_mailbox', '0008_auto_20190219_1553'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='message',
|
||||
name='eml',
|
||||
field=models.FileField(help_text='Original full content of message', null=True, upload_to=functools.partial(django_mailbox.utils.get_save_path, *(), **{'setting': 'message_upload_to'}), verbose_name='Raw message contents'),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue