From 5b9f38d398916dd6dbeee4ae431bea9938cb8294 Mon Sep 17 00:00:00 2001 From: Jonas Winkler Date: Tue, 25 Sep 2018 21:51:38 +0200 Subject: [PATCH] Removed the archive tag, as it wasnt really used anyway. --- src/documents/management/commands/document_retagger.py | 2 +- src/documents/migrations/0022_workflow_improvements.py | 5 ----- src/documents/mixins.py | 0 src/documents/models.py | 7 ------- 4 files changed, 1 insertion(+), 13 deletions(-) mode change 100644 => 100755 src/documents/migrations/0022_workflow_improvements.py mode change 100644 => 100755 src/documents/mixins.py diff --git a/src/documents/management/commands/document_retagger.py b/src/documents/management/commands/document_retagger.py index 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.py old mode 100644 new mode 100755 index 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.py old mode 100644 new mode 100755 diff --git a/src/documents/models.py b/src/documents/models.py index 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):