Fix attachment upload
There was no default specified for the open_graph_image flag
This commit is contained in:
parent
9987bc57e3
commit
297e211d1c
2 changed files with 19 additions and 1 deletions
18
attachments/migrations/0007_auto_20201201_1917.py
Normal file
18
attachments/migrations/0007_auto_20201201_1917.py
Normal 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),
|
||||
),
|
||||
]
|
|
@ -30,7 +30,7 @@ class Attachment(models.Model):
|
|||
description = models.CharField(max_length=500)
|
||||
original_file = AbsoluteUrlFileField()
|
||||
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()
|
||||
|
||||
|
|
Reference in a new issue