Enhancement: support doc_id placeholder in workflow templates (#11847)

This commit is contained in:
shamoon
2026-01-21 16:05:19 -08:00
committed by GitHub
parent c06e1e7cba
commit 32b236cfa2
5 changed files with 18 additions and 2 deletions

View File

@@ -3298,7 +3298,7 @@ class TestWorkflows(
)
webhook_action = WorkflowActionWebhook.objects.create(
use_params=False,
body="Test message: {{doc_url}}",
body="Test message: {{doc_url}} with id {{doc_id}}",
url="http://paperless-ngx.com",
include_document=False,
)
@@ -3328,7 +3328,10 @@ class TestWorkflows(
mock_post.assert_called_once_with(
url="http://paperless-ngx.com",
data=f"Test message: http://localhost:8000/paperless/documents/{doc.id}/",
data=(
f"Test message: http://localhost:8000/paperless/documents/{doc.id}/"
f" with id {doc.id}"
),
headers={},
files=None,
as_json=False,