mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-11-09 08:13:02 -05:00
Change: make workflowrun a softdeletemodel (#11194)
This commit is contained in:
parent
cd81f750b4
commit
d0bd111eab
@ -0,0 +1,28 @@
|
||||
# Generated by Django 5.2.6 on 2025-10-27 15:11
|
||||
|
||||
from django.db import migrations
|
||||
from django.db import models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("documents", "1073_migrate_workflow_title_jinja"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="workflowrun",
|
||||
name="deleted_at",
|
||||
field=models.DateTimeField(blank=True, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="workflowrun",
|
||||
name="restored_at",
|
||||
field=models.DateTimeField(blank=True, null=True),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="workflowrun",
|
||||
name="transaction_id",
|
||||
field=models.UUIDField(blank=True, null=True),
|
||||
),
|
||||
]
|
||||
@ -1547,7 +1547,7 @@ class Workflow(models.Model):
|
||||
return f"Workflow: {self.name}"
|
||||
|
||||
|
||||
class WorkflowRun(models.Model):
|
||||
class WorkflowRun(SoftDeleteModel):
|
||||
workflow = models.ForeignKey(
|
||||
Workflow,
|
||||
on_delete=models.CASCADE,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user