feature: export the project's current (draft) state as a PDF #22
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!22
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/pdf-export-drafts"
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 #21.
Lets "Exporter en PDF" target a project directly, not just an already-validated ProjectVersion -- renders the live Place/Spec tree (
apps.exports.snapshot.build_current_context), each spec'scurrent_version()regardless of draft/validated status. The default template marks draft specs with a "brouillon" tag and says "État courant du projet (brouillon, non figé)" on the cover instead of a version number.PdfExportJob.projectis now a real field (was derived fromproject_versionvia a property) andproject_versionis nullable -- a draft export has noProjectVersionto point at. The create API accepts eitherproject_version(export a validated version, as before) orproject(export the current state); the serializer rejects both missing.Test plan
manage.py test-- 145/145 passing (6 new/updated inapps.exports)pylint apps.exports-- 10.00/10autopep8 --diffcleanbandit-- 0 issuesprojectfromproject_versionfor any pre-existing row🤖 Generated with Claude Code
https://claude.ai/code/session_013EeueXTWCT4Y6EbeideZcm
📊 Rapports Argus pour cette PR