1
0
Fork 0

Check if import is stopped and create import status field

This commit is contained in:
Mouse Reeve 2022-11-05 13:29:08 -07:00
parent 3c2f2c10bf
commit 24e5ea3295
3 changed files with 55 additions and 2 deletions

View file

@ -0,0 +1,33 @@
# Generated by Django 3.2.15 on 2022-11-05 20:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("bookwyrm", "0159_auto_20220924_0634"),
]
operations = [
migrations.AddField(
model_name="importitem",
name="task_id",
field=models.CharField(blank=True, max_length=200, null=True),
),
migrations.AddField(
model_name="importjob",
name="status",
field=models.CharField(
choices=[
("pending", "Pending"),
("active", "Active"),
("complete", "Complete"),
("stopped", "Stopped"),
],
default="pending",
max_length=50,
null=True,
),
),
]