diff --git a/CHANGELOG.txt b/CHANGELOG.txt index c1fe0b5ae4..2dee2a91bc 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -9,6 +9,7 @@ Changelog * The current live version of a page is now tracked on the revision listing view (Matheus Bratfisch) * Each block created in a `StreamField` is now assigned a globally unique identifier (Matt Westcott) * Mixcloud oEmbed pattern has been updated (Alice Rose) + * Added ``last_published_at`` field to the Page model (Matt Westcott) * Fix: Unauthenticated AJAX requests to admin views now return 403 rather than redirecting to the login page (Karl Hobley) * Fix: `TableBlock` options `afterChange`, `afterCreateCol`, `afterCreateRow`, `afterRemoveCol`, `afterRemoveRow` and `contextMenu` can now be overridden (Loic Teixeira) diff --git a/docs/reference/pages/model_reference.rst b/docs/reference/pages/model_reference.rst index d99d2d44c2..9c56077a4b 100644 --- a/docs/reference/pages/model_reference.rst +++ b/docs/reference/pages/model_reference.rst @@ -62,6 +62,12 @@ Database fields The date/time when the page was first published. + .. attribute:: last_published_at + + (date/time) + + The date/time when the page was last published. + .. attribute:: seo_title (text) diff --git a/docs/releases/1.11.rst b/docs/releases/1.11.rst index ff5526ef71..f93e58fcc0 100644 --- a/docs/releases/1.11.rst +++ b/docs/releases/1.11.rst @@ -48,6 +48,7 @@ Other features * The current live version of a page is now tracked on the revision listing view (Matheus Bratfisch) * Each block created in a ``StreamField`` is now assigned a globally unique identifier (Matt Westcott) * Mixcloud oEmbed pattern has been updated (Alice Rose) + * Added ``last_published_at`` field to the Page model (Matt Westcott) Bug fixes @@ -55,6 +56,7 @@ Bug fixes * Unauthenticated AJAX requests to admin views now return 403 rather than redirecting to the login page (Karl Hobley) * ``TableBlock`` options ``afterChange``, ``afterCreateCol``, ``afterCreateRow``, ``afterRemoveCol``, ``afterRemoveRow`` and ``contextMenu`` can now be overridden (Loic Teixeira) + * The lastmod field returned by wagtailsitemaps now shows the last published date rather than the date of the last draft edit (Matt Westcott) Upgrade considerations