Fix attachment upload

There was no default specified for
the open_graph_image flag
This commit is contained in:
Gabriel Augendre 2020-12-01 19:18:04 +01:00
parent 9987bc57e3
commit 297e211d1c
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4
2 changed files with 19 additions and 1 deletions

View file

@ -0,0 +1,18 @@
# Generated by Django 3.1.3 on 2020-12-01 18:17
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("attachments", "0006_auto_20201128_2022"),
]
operations = [
migrations.AlterField(
model_name="attachment",
name="open_graph_image",
field=models.BooleanField(blank=True, default=False),
),
]

View file

@ -30,7 +30,7 @@ class Attachment(models.Model):
description = models.CharField(max_length=500) description = models.CharField(max_length=500)
original_file = AbsoluteUrlFileField() original_file = AbsoluteUrlFileField()
processed_file = AbsoluteUrlFileField(blank=True, null=True) processed_file = AbsoluteUrlFileField(blank=True, null=True)
open_graph_image = models.BooleanField(blank=True) open_graph_image = models.BooleanField(blank=True, default=False)
objects = AttachmentManager() objects = AttachmentManager()