feature: expose the default PDF template content via the API #38
No reviewers
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!38
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/pdf-template-default-content"
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?
Closes #37
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 on the stale
feature/pdf-exportbranch (commit74521e48a, originally PR #19 there) before the repo switched to prod mode, and never got merged into master. Cherry-picked cleanly onto a fresh branch off current master -- thePdfTemplateViewSet/serializer/permission shape hasn't changed in a way that affects it (the new action sits betweenperform_updateand the existingresolveaction, same as before;CanManagePdfTemplatealready allows any authenticated user through on GET).Test plan
pytest apps/exports-- 35 passed.pytest apps(full suite) -- 211 passed.🤖 Generated with Claude Code
https://claude.ai/code/session_013EeueXTWCT4Y6EbeideZcm
📊 Rapports Argus pour cette PR