Merge pull request #767 from mouse-reeve/django-upgrade-migrations

Migrations for django 3.1 upgrade
This commit is contained in:
Mouse Reeve 2021-03-19 14:04:29 -07:00 committed by GitHub
commit 50e5cf11b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 2 deletions

View file

@ -0,0 +1,25 @@
# 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 import dateutil.parser
from django.apps import apps from django.apps import apps
from django.contrib.postgres.fields import JSONField
from django.db import models from django.db import models
from django.utils import timezone from django.utils import timezone
@ -70,7 +69,7 @@ class ImportItem(models.Model):
job = models.ForeignKey(ImportJob, on_delete=models.CASCADE, related_name="items") job = models.ForeignKey(ImportJob, on_delete=models.CASCADE, related_name="items")
index = models.IntegerField() index = models.IntegerField()
data = JSONField() data = models.JSONField()
book = models.ForeignKey(Book, on_delete=models.SET_NULL, null=True, blank=True) book = models.ForeignKey(Book, on_delete=models.SET_NULL, null=True, blank=True)
fail_reason = models.TextField(null=True) fail_reason = models.TextField(null=True)