forked from mirrors/bookwyrm
Add default author aliases as empty list.
Fixes null constraint trying to rebuilddb.
This commit is contained in:
parent
f714b961f2
commit
8618f20893
2 changed files with 20 additions and 1 deletions
19
fedireads/migrations/0012_auto_20200308_1625.py
Normal file
19
fedireads/migrations/0012_auto_20200308_1625.py
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# Generated by Django 3.0.3 on 2020-03-08 16:25
|
||||||
|
|
||||||
|
from django.db import migrations, models
|
||||||
|
import fedireads.utils.fields
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('fedireads', '0011_notification'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AlterField(
|
||||||
|
model_name='author',
|
||||||
|
name='aliases',
|
||||||
|
field=fedireads.utils.fields.ArrayField(base_field=models.CharField(max_length=255), blank=True, default=list, size=None),
|
||||||
|
),
|
||||||
|
]
|
|
@ -79,6 +79,6 @@ class Author(FedireadsModel):
|
||||||
name = models.CharField(max_length=255)
|
name = models.CharField(max_length=255)
|
||||||
last_name = models.CharField(max_length=255, null=True)
|
last_name = models.CharField(max_length=255, null=True)
|
||||||
first_name = models.CharField(max_length=255, null=True)
|
first_name = models.CharField(max_length=255, null=True)
|
||||||
aliases = ArrayField(models.CharField(max_length=255), blank=True)
|
aliases = ArrayField(models.CharField(max_length=255), blank=True, default=list)
|
||||||
bio = models.TextField(null=True, blank=True)
|
bio = models.TextField(null=True, blank=True)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue