feature: expose the default PDF template content via the API #37
Labels
No labels
breaking
bug
ci
dependencies
documentation
feature
security
skip-changelog
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thierryade/backend#37
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
PdfTemplateViewSet.default_contentso the frontend's template editor can offer a "reset to default" action without duplicatingDEFAULT_PDF_TEMPLATE_HTMLclient-side -- same reasoning as poulpinou's own server-sidemail_template_reset: the default lives in exactly one place.This was originally written as PR #19 on the stale
feature/pdf-exportbranch (commit74521e48a) before the repo switched to prod mode, and never got merged into master. Re-applying it cleanly on top of current master (the model/serializer/permission shape aroundPdfTemplateViewSethasn't changed in a way that affects it).