mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-14 10:36:58 +01:00
Add 'doc_pk' to PAPERLESS_FILENAME_FORMAT handling (#3861)
* Add 'doc_pk' to PAPERLESS_FILENAME_FORMAT handling * Add test for 'doc_pk' filename formatter
This commit is contained in:
parent
b715e4d426
commit
6ad3d45d60
3 changed files with 15 additions and 0 deletions
|
|
@ -218,6 +218,7 @@ def generate_filename(
|
|||
tag_list=tag_list,
|
||||
owner_username=owner_username_str,
|
||||
original_name=original_name,
|
||||
doc_pk=f"{doc.pk:07}",
|
||||
).strip()
|
||||
|
||||
if settings.FILENAME_FORMAT_REMOVE_NONE:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue