Skip to content

Published Report

A Published Report is an immutable snapshot of a Report Template rendered at a specific point in time. Every time a Report is published from a template, a new Published Report row is created with the rendered HTML stored verbatim, alongside metadata about who ran it. The snapshot itself is stored as HTML; PDF or DOCX files are generated from it on demand when the report is downloaded. Edits to the source template after generation never modify existing snapshots, so historical reports remain reproducible and auditable even after the template is changed or deleted.

The PublishedReport model for nautobot_reports provides the following fields:

  • report_template (ReportTemplate reference): The template this report was generated from. May be null if the template has been deleted since generation.
  • report_template_name (string): Snapshot of the template's name at the time of generation. Preserved so the published report remains identifiable even after the source template is deleted.
  • published_at (datetime): Timestamp when the report was generated. Set automatically and never updated.
  • published_by (User reference): The user who triggered the report generation. May be null if the user has since been deleted.
  • rendered_html (text): The frozen rendered HTML body of the report as produced at generation time. Used as the source for re-downloading or re-exporting the report later.