allow PaperlessTask.started null

This commit is contained in:
Michael Shamoon 2022-06-13 16:21:37 -07:00
parent 1120e823ed
commit 7ae8b46ea7
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ class Migration(migrations.Migration):
), ),
( (
"started", "started",
models.DateTimeField(verbose_name="started"), models.DateTimeField(null=True, verbose_name="started"),
), ),
("acknowledged", models.BooleanField(default=False)), ("acknowledged", models.BooleanField(default=False)),
( (

View File

@ -511,7 +511,7 @@ class PaperlessTask(models.Model):
task_id = models.CharField(max_length=128) task_id = models.CharField(max_length=128)
name = models.CharField(max_length=256) name = models.CharField(max_length=256)
created = models.DateTimeField(_("created"), auto_now=True) created = models.DateTimeField(_("created"), auto_now=True)
started = models.DateTimeField(_("started")) started = models.DateTimeField(_("started"), null=True)
attempted_task = models.OneToOneField( attempted_task = models.OneToOneField(
Task, Task,
on_delete=models.CASCADE, on_delete=models.CASCADE,