mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-05-01 11:19:32 -05:00
Basic append doc_url
This commit is contained in:
parent
8d76654ff6
commit
9066ac56f4
@ -883,7 +883,11 @@ def run_workflows(
|
||||
title=subject,
|
||||
document=document,
|
||||
)
|
||||
# TODO: if doc exists, construct URL
|
||||
doc_url = None
|
||||
if isinstance(document, Document):
|
||||
doc_url = f"{settings.PAPERLESS_URL}/documents/{document.pk}/"
|
||||
if doc_url:
|
||||
body += f"\n\n{doc_url}"
|
||||
if action.notification_destination_emails:
|
||||
if not settings.EMAIL_ENABLED:
|
||||
logger.error(
|
||||
|
Loading…
x
Reference in New Issue
Block a user