mailer: make attachment file field mandatory

pull/73/head
Christian Merten 1 year ago
parent 40df91fcc7
commit d67caab5ae
Signed by: christian.merten
GPG Key ID: D953D69721B948B3

@ -0,0 +1,19 @@
# Generated by Django 4.0.1 on 2024-11-17 23:31
from django.db import migrations
import utils
class Migration(migrations.Migration):
dependencies = [
('mailer', '0003_alter_message_options'),
]
operations = [
migrations.AlterField(
model_name='attachment',
name='f',
field=utils.RestrictedFileField(upload_to='attachments', verbose_name='file'),
),
]

@ -207,7 +207,6 @@ class Attachment(CommonModel):
# file (not naming it file because of builtin) # file (not naming it file because of builtin)
f = RestrictedFileField(_('file'), f = RestrictedFileField(_('file'),
upload_to='attachments', upload_to='attachments',
blank=True,
max_upload_size=10) max_upload_size=10)
def __str__(self): def __str__(self):

Loading…
Cancel
Save