mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-08 07:45:32 +01:00
GnuPG for archive file.
This commit is contained in:
parent
f51d2be303
commit
6f30ceea38
3 changed files with 9 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue