mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-21 04:52:40 +00:00
Adds an optional API field to follow the filenaming format when creating a bulk download zip
This commit is contained in:
1 parent
ff4a8b37bd
commit
54bb1ae27d
5 files changed
+181
-11
No files matched your search
@@ -287,6 +287,9 @@ class Document(models.Model):
|
||||
return open(self.archive_path, "rb")
|
||||
|
||||
def get_public_filename(self, archive=False, counter=0, suffix=None) -> str:
|
||||
"""
|
||||
Returns a sanitized filename for the document, not including any paths.
|
||||
"""
|
||||
result = str(self)
|
||||
|
||||
if counter:
|
||||
|
||||
Reference in new issue
Block a user