Added owner name to post consume env

This commit is contained in:
Freddy0
2024-07-16 12:59:58 +02:00
committed by GitHub
parent a7d8b5c960
commit 88c23ecc15
3 changed files with 3 additions and 0 deletions

View File

@@ -450,6 +450,7 @@ class ConsumerPlugin(
"document-thumb",
kwargs={"pk": document.pk},
)
script_env["DOCUMENT_OWNER"] = str(document.owner)
script_env["DOCUMENT_CORRESPONDENT"] = str(document.correspondent)
script_env["DOCUMENT_TAGS"] = str(
",".join(document.tags.all().values_list("name", flat=True)),