mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-06 23:05:42 +01:00
Enhancement: Add {original_filename}, {added_time} to title placeholders (#4972)
--------- Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
parent
7289c4ea56
commit
1197a048bc
2 changed files with 4 additions and 0 deletions
|
|
@ -311,6 +311,8 @@ applied. You can use the following placeholders:
|
||||||
- `{added_month_name}`: added month name
|
- `{added_month_name}`: added month name
|
||||||
- `{added_month_name_short}`: added month short name
|
- `{added_month_name_short}`: added month short name
|
||||||
- `{added_day}`: added day
|
- `{added_day}`: added day
|
||||||
|
- `{added_time}`: added time in HH:MM format
|
||||||
|
- `{original_filename}`: original file name without extension
|
||||||
|
|
||||||
## Custom Fields {#custom-fields}
|
## Custom Fields {#custom-fields}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -691,6 +691,8 @@ class Consumer(LoggingMixin):
|
||||||
added_month_name_short=local_added.strftime("%b"),
|
added_month_name_short=local_added.strftime("%b"),
|
||||||
added_day=local_added.strftime("%d"),
|
added_day=local_added.strftime("%d"),
|
||||||
owner_username=owner_username,
|
owner_username=owner_username,
|
||||||
|
original_filename=Path(self.filename).stem,
|
||||||
|
added_time=local_added.strftime("%H:%M"),
|
||||||
).strip()
|
).strip()
|
||||||
|
|
||||||
def _store(
|
def _store(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue