mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 23:35:22 +01:00
Enhancement: include owner username in post-consumption variables (#7270)
This commit is contained in:
parent
aef387ed69
commit
8e3ca37b05
3 changed files with 5 additions and 0 deletions
|
|
@ -450,6 +450,9 @@ class ConsumerPlugin(
|
|||
"document-thumb",
|
||||
kwargs={"pk": document.pk},
|
||||
)
|
||||
script_env["DOCUMENT_OWNER"] = (
|
||||
document.owner.get_username() if document.owner else ""
|
||||
)
|
||||
script_env["DOCUMENT_CORRESPONDENT"] = str(document.correspondent)
|
||||
script_env["DOCUMENT_TAGS"] = str(
|
||||
",".join(document.tags.all().values_list("name", flat=True)),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue