added checksums for archived documents.

This commit is contained in:
jonaswinkler
2020-11-29 12:31:26 +01:00
parent fdaf419a7e
commit 24767f62c7
5 changed files with 57 additions and 15 deletions

View File

@@ -157,9 +157,15 @@ class Document(models.Model):
max_length=32,
editable=False,
unique=True,
help_text="The checksum of the original document (before it was "
"encrypted). We use this to prevent duplicate document "
"imports."
help_text="The checksum of the original document."
)
archive_checksum = models.CharField(
max_length=32,
editable=False,
blank=True,
null=True,
help_text="The checksum of the archived document."
)
created = models.DateTimeField(