aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2019-11-15 10:04:29 +0100
committerGravatar GitHub <[email protected]>2019-11-15 10:04:29 +0100
commit80c5799cb3538dcfff48b2f9f017097abb65ab72 (patch)
tree3fa8cc98b94bc0c94a6974d89a9bc9c8e7031c5f
parentAllow empty attachment field (diff)
Allow blank attachment field
-rw-r--r--pydis_site/apps/api/migrations/0047_deletedmessage_attachments.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pydis_site/apps/api/migrations/0047_deletedmessage_attachments.py b/pydis_site/apps/api/migrations/0047_deletedmessage_attachments.py
index a738faff..f335e003 100644
--- a/pydis_site/apps/api/migrations/0047_deletedmessage_attachments.py
+++ b/pydis_site/apps/api/migrations/0047_deletedmessage_attachments.py
@@ -14,7 +14,7 @@ class Migration(migrations.Migration):
migrations.AddField(
model_name='deletedmessage',
name='attachments',
- field=django.contrib.postgres.fields.ArrayField(base_field=models.URLField(max_length=512), default=[], help_text='Attachments attached to this message.', size=None),
+ field=django.contrib.postgres.fields.ArrayField(base_field=models.URLField(max_length=512), default=[], blank=True, help_text='Attachments attached to this message.', size=None),
preserve_default=False,
),
]