mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-08-14 00:26:21 +00:00
GnuPG for archive file.
This commit is contained in:
@@ -227,6 +227,8 @@ class Document(models.Model):
|
||||
@property
|
||||
def archive_path(self):
|
||||
fname = "{:07}{}".format(self.pk, ".pdf")
|
||||
if self.storage_type == self.STORAGE_TYPE_GPG:
|
||||
fname += ".gpg"
|
||||
|
||||
return os.path.join(
|
||||
settings.ARCHIVE_DIR,
|
||||
|
Reference in New Issue
Block a user