update post_save signal receiver

This commit is contained in:
Michael Shamoon
2022-05-23 01:52:46 -07:00
parent f88e070455
commit 4bbaf5f89c
6 changed files with 39 additions and 39 deletions

View File

@@ -505,13 +505,13 @@ class UiSettings(models.Model):
class PaperlessTask(models.Model):
q_task_id = models.CharField(max_length=128)
task_id = models.CharField(max_length=128)
name = models.CharField(max_length=256)
created = models.DateTimeField(_("created"), auto_now=True, db_index=True)
task = models.OneToOneField(
attempted_task = models.OneToOneField(
Task,
on_delete=models.CASCADE,
related_name="task",
related_name="attempted_task",
null=True,
blank=True,
)