inbox tags, archive tags, archive serial number for documents

This commit is contained in:
Jonas Winkler
2018-07-06 13:25:02 +02:00
parent 8f6231bd34
commit c3a144f2ca
5 changed files with 52 additions and 3 deletions

View File

@@ -180,6 +180,14 @@ class Tag(MatchingModel):
colour = models.PositiveIntegerField(choices=COLOURS, default=1)
is_inbox_tag = models.BooleanField(
default=False,
help_text="Marks this tag as an inbox tag: All newly consumed 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 Document(models.Model):
@@ -247,6 +255,13 @@ class Document(models.Model):
added = models.DateTimeField(
default=timezone.now, editable=False, db_index=True)
archive_serial_number = models.IntegerField(
blank=True,
null=True,
unique=True,
db_index=True,
help_text="The position of this document in your physical document archive.")
class Meta:
ordering = ("correspondent", "title")