Removed the archive tag, as it wasnt really used anyway.

This commit is contained in:
Jonas Winkler 2018-09-25 21:51:38 +02:00
parent b31d4779bf
commit 5b9f38d398
4 changed files with 1 additions and 13 deletions

View File

@ -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:

5
src/documents/migrations/0022_workflow_improvements.py Normal file → Executable file
View File

@ -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',

0
src/documents/mixins.py Normal file → Executable file
View File

View File

@ -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):