mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
added some more fields for document file naming.
This commit is contained in:
parent
6377a3758d
commit
9956b7ff1b
@ -73,7 +73,13 @@ def generate_filename(document):
|
|||||||
correspondent=slugify(document.correspondent),
|
correspondent=slugify(document.correspondent),
|
||||||
title=slugify(document.title),
|
title=slugify(document.title),
|
||||||
created=slugify(document.created),
|
created=slugify(document.created),
|
||||||
|
created_year=document.created.year if document.created else "none",
|
||||||
|
created_month=document.created.month if document.created else "none",
|
||||||
|
created_day=document.created.day if document.created else "none",
|
||||||
added=slugify(document.added),
|
added=slugify(document.added),
|
||||||
|
added_year=document.added.year if document.added else "none",
|
||||||
|
added_month=document.added.month if document.added else "none",
|
||||||
|
added_day=document.added.day if document.added else "none",
|
||||||
tags=tags,
|
tags=tags,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user