This commit is contained in:
masterjo75 2024-03-04 21:57:11 +01:00
parent d5f4e4a3b8
commit d2247c6a8f
2 changed files with 2 additions and 1 deletions

View File

@ -320,6 +320,7 @@ Paperless provides the following placeholders within filenames:
- `{owner_username}`: Username of document owner, if any, or "none"
- `{original_name}`: Document original filename, minus the extension, if any, or "none"
- `{doc_pk}`: The paperless identifier (primary key) for the document.
- `{customfield<id_of_custom_field>}`: Content of custom field. Replace <id_of_custom_field> with the id of the custom_field. If custom field is not assigned to document, "-none-" will be set.
Paperless will try to conserve the information from your database as
much as possible. However, some characters that you can use in document

View File

@ -187,7 +187,7 @@ class TestApiStoragePaths(DirectoriesMixin, APITestCase):
"/{created_month_name_short}/{created_day}/{added}/{added_year}"
"/{added_year_short}/{added_month}/{added_month_name}"
"/{added_month_name_short}/{added_day}/{asn}/{tags}"
"/{tag_list}/{owner_username}/{original_name}/{doc_pk}/",
"/{tag_list}/{owner_username}/{original_name}/{doc_pk}/{customfield<id_of_custom_field>}/",
},
),
content_type="application/json",