]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Add in_process field to Document model
authorshamoon <4887959+shamoon@users.noreply.github.com>
Tue, 26 Aug 2025 07:55:23 +0000 (00:55 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Tue, 26 Aug 2025 07:55:23 +0000 (00:55 -0700)
src/documents/migrations/1069_document_in_process.py [new file with mode: 0644]
src/documents/models.py

diff --git a/src/documents/migrations/1069_document_in_process.py b/src/documents/migrations/1069_document_in_process.py
new file mode 100644 (file)
index 0000000..414e6d2
--- /dev/null
@@ -0,0 +1,23 @@
+# Generated by Django 5.2.5 on 2025-08-26 07:54
+
+from django.db import migrations
+from django.db import models
+
+
+class Migration(migrations.Migration):
+    dependencies = [
+        ("documents", "1068_alter_document_created"),
+    ]
+
+    operations = [
+        migrations.AddField(
+            model_name="document",
+            name="in_process",
+            field=models.BooleanField(
+                db_index=True,
+                default=False,
+                help_text="Whether the document is currently being processed.",
+                verbose_name="in process",
+            ),
+        ),
+    ]
index e93f140543403579c02f7962192ad374768a5484..8a25e103872c66c0bb4c76d5b7babc848b30fca5 100644 (file)
@@ -289,6 +289,13 @@ class Document(SoftDeleteModel, ModelWithOwner):
         ),
     )
 
+    in_process = models.BooleanField(
+        _("in process"),
+        default=False,
+        db_index=True,
+        help_text=_("Whether the document is currently being processed."),
+    )
+
     class Meta:
         ordering = ("-created",)
         verbose_name = _("document")