mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-09 08:15:27 +01:00
Feature: documents trash aka soft delete (#6944)
This commit is contained in:
parent
9d4e2d4652
commit
a796e58a94
38 changed files with 1283 additions and 191 deletions
|
|
@ -23,6 +23,8 @@ from multiselectfield import MultiSelectField
|
|||
if settings.AUDIT_LOG_ENABLED:
|
||||
from auditlog.registry import auditlog
|
||||
|
||||
from django_softdelete.models import SoftDeleteModel
|
||||
|
||||
from documents.data_models import DocumentSource
|
||||
from documents.parsers import get_default_file_extension
|
||||
|
||||
|
|
@ -130,7 +132,7 @@ class StoragePath(MatchingModel):
|
|||
verbose_name_plural = _("storage paths")
|
||||
|
||||
|
||||
class Document(ModelWithOwner):
|
||||
class Document(SoftDeleteModel, ModelWithOwner):
|
||||
STORAGE_TYPE_UNENCRYPTED = "unencrypted"
|
||||
STORAGE_TYPE_GPG = "gpg"
|
||||
STORAGE_TYPES = (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue