A community-supported supercharged document management system: scan, index and archive all your documents
Python aiangulararchivingdjangodmsdocument-managementdocument-management-systemllmmachine-learningocroptical-character-recognitionpdf
Removed the archive tag, as it wasnt really used anyway.
Jonas Winkler5b9f38d39891
diff --git a/src/documents/management/commands/document_retagger.py b/src/documents/management/commands/document_retagger.pyindex b5853441b..2a9f32c13 100755--- a/src/documents/management/commands/document_retagger.py+++ b/src/documents/management/commands/document_retagger.py@@ -51,7 +51,7 @@ class Command(Renderable, BaseCommand):queryset = Document.objects.filter(tags__is_inbox_tag=True)else:queryset = Document.objects.all()- documents = queryset.exclude(tags__is_archived_tag=True).distinct()+ documents = queryset.distinct()logging.getLogger(__name__).info("Loading classifier")try:diff --git a/src/documents/migrations/0022_workflow_improvements.py b/src/documents/migrations/0022_workflow_improvements.pyold mode 100644new mode 100755index cdaf4504c..20820c32c--- a/src/documents/migrations/0022_workflow_improvements.py+++ b/src/documents/migrations/0022_workflow_improvements.py@@ -15,11 +15,6 @@ class Migration(migrations.Migration):name='archive_serial_number',field=models.IntegerField(blank=True, db_index=True, help_text='The position of this document in your physical document archive.', null=True, unique=True),),- migrations.AddField(- model_name='tag',- name='is_archived_tag',- field=models.BooleanField(default=False, help_text='Marks this tag as an archive tag: All documents tagged with archive tags will never be modified automatically (i.e., modifying tags by matching rules)'),- ),migrations.AddField(model_name='tag',name='is_inbox_tag',diff --git a/src/documents/mixins.py b/src/documents/mixins.pyold mode 100644new mode 100755diff --git a/src/documents/models.py b/src/documents/models.pyindex 18fb3462a..ce5ece338 100755--- a/src/documents/models.py+++ b/src/documents/models.py@@ -83,13 +83,6 @@ class Tag(MatchingModel):"documents will be tagged with inbox tags.")- is_archived_tag = models.BooleanField(- default=False,- help_text="Marks this tag as an archive tag: All documents tagged "- "with archive tags will never be modified automatically "- "(i.e., modifying tags by matching rules)"- )-class DocumentType(MatchingModel):