Migrations for django 3.1 upgrade

This commit is contained in:
Mouse Reeve 2021-03-19 12:43:36 -07:00
parent 08327b3a0a
commit 5a0723cde7
2 changed files with 24 additions and 2 deletions

View file

@ -0,0 +1,23 @@
# Generated by Django 3.1.6 on 2021-03-19 19:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bookwyrm', '0053_auto_20210319_1913'),
]
operations = [
migrations.AlterField(
model_name='importitem',
name='data',
field=models.JSONField(),
),
migrations.AlterField(
model_name='user',
name='first_name',
field=models.CharField(blank=True, max_length=150, verbose_name='first name'),
),
]

View file

@ -3,7 +3,6 @@ import re
import dateutil.parser
from django.apps import apps
from django.contrib.postgres.fields import JSONField
from django.db import models
from django.utils import timezone
@ -70,7 +69,7 @@ class ImportItem(models.Model):
job = models.ForeignKey(ImportJob, on_delete=models.CASCADE, related_name="items")
index = models.IntegerField()
data = JSONField()
data = models.JSONField()
book = models.ForeignKey(Book, on_delete=models.SET_NULL, null=True, blank=True)
fail_reason = models.TextField(null=True)