diff --git a/bookwyrm/migrations/0054_auto_20210319_1942.py b/bookwyrm/migrations/0054_auto_20210319_1942.py new file mode 100644 index 00000000..5d5865b6 --- /dev/null +++ b/bookwyrm/migrations/0054_auto_20210319_1942.py @@ -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" + ), + ), + ] diff --git a/bookwyrm/models/import_job.py b/bookwyrm/models/import_job.py index 31dccda8..026cf7cd 100644 --- a/bookwyrm/models/import_job.py +++ b/bookwyrm/models/import_job.py @@ -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)