- `{added_day}`: added day
- `{added_time}`: added time in HH:MM format
- `{original_filename}`: original file name without extension
+- `{filename}`: current file name without extension
The following placeholders are only available for "added" or "updated" triggers
document.owner.username if document.owner else "",
timezone.localtime(document.added),
document.original_filename or "",
+ document.filename or "",
timezone.localtime(document.created),
)
except Exception:
document_type = document.document_type.name if document.document_type else ""
owner_username = document.owner.username if document.owner else ""
filename = document.original_filename or ""
+ current_filename = document.filename or ""
added = timezone.localtime(document.added)
created = timezone.localtime(document.created)
subject = parse_w_workflow_placeholders(
owner_username,
added,
filename,
+ current_filename,
created,
title,
doc_url,
owner_username,
added,
filename,
+ current_filename,
created,
title,
doc_url,
document_type = document.document_type.name if document.document_type else ""
owner_username = document.owner.username if document.owner else ""
filename = document.original_filename or ""
+ current_filename = document.filename or ""
added = timezone.localtime(document.added)
created = timezone.localtime(document.created)
owner_username,
added,
filename,
+ current_filename,
created,
title,
doc_url,
owner_username,
added,
filename,
+ current_filename,
created,
title,
doc_url,
owner_username: str,
local_added: datetime,
original_filename: str,
+ filename: str,
created: datetime | None = None,
doc_title: str | None = None,
doc_url: str | None = None,
"added_time": local_added.strftime("%H:%M"),
"owner_username": owner_username,
"original_filename": Path(original_filename).stem,
+ "filename": Path(filename).stem,
}
if created is not None:
formatting.update(