mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-28 01:26:14 +00:00
Add in_process field to Document model
This commit is contained in:
23
src/documents/migrations/1069_document_in_process.py
Normal file
23
src/documents/migrations/1069_document_in_process.py
Normal file
@@ -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",
|
||||||
|
),
|
||||||
|
),
|
||||||
|
]
|
@@ -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:
|
class Meta:
|
||||||
ordering = ("-created",)
|
ordering = ("-created",)
|
||||||
verbose_name = _("document")
|
verbose_name = _("document")
|
||||||
|
Reference in New Issue
Block a user