mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-19 13:06:46 +01:00
inbox tags, archive tags, archive serial number for documents
This commit is contained in:
parent
8f6231bd34
commit
c3a144f2ca
5 changed files with 52 additions and 3 deletions
2
src/documents/management/commands/document_correspondents.py
Normal file → Executable file
2
src/documents/management/commands/document_correspondents.py
Normal file → Executable file
|
|
@ -41,7 +41,7 @@ class Command(Renderable, BaseCommand):
|
|||
|
||||
self.verbosity = options["verbosity"]
|
||||
|
||||
for document in Document.objects.filter(correspondent__isnull=True):
|
||||
for document in Document.objects.filter(correspondent__isnull=True).exclude(tags__is_archived_tag=True):
|
||||
|
||||
potential_correspondents = list(
|
||||
Correspondent.match_all(document.content))
|
||||
|
|
|
|||
2
src/documents/management/commands/document_retagger.py
Normal file → Executable file
2
src/documents/management/commands/document_retagger.py
Normal file → Executable file
|
|
@ -22,7 +22,7 @@ class Command(Renderable, BaseCommand):
|
|||
|
||||
self.verbosity = options["verbosity"]
|
||||
|
||||
for document in Document.objects.all():
|
||||
for document in Document.objects.all().exclude(tags__is_archived_tag=True):
|
||||
|
||||
tags = Tag.objects.exclude(
|
||||
pk__in=document.tags.values_list("pk", flat=True))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue