mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 15:25:41 +01:00
Merge branch 'dev' into feature-permissions
This commit is contained in:
commit
8fad13b500
10 changed files with 380 additions and 64 deletions
|
|
@ -300,6 +300,9 @@ class Document(ModelWithOwner):
|
|||
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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue