pull/1356/head
Karl Hobley 2015-05-29 14:21:08 +01:00
rodzic d0df0c225b
commit 9885d2fb7d
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -212,8 +212,8 @@ This configuration is used by the :class:`~wagtail.wagtailcore.middleware.SiteMi
Every time a page is edited a new ``PageRevision`` is created and saved to the database. It can be used to find the full history of all changes that have been made to a page and it also provides a place for new changes to be kept before going live.
- Revisions can be created from any class:`~wagtail.wagtailcore.models.Page` object calling its :meth:`~Page.create_revision` method
- The content of the class:`~wagtail.wagtailcore.models.Page` is JSON-serialised and stored in the :attr:`~PageRevision.content_json` field
- Revisions can be created from any :class:`~wagtail.wagtailcore.models.Page` object calling its :meth:`~Page.create_revision` method
- The content of the page is JSON-serialised and stored in the :attr:`~PageRevision.content_json` field
- You can retrieve a ``PageRevision`` as a :class:`~wagtail.wagtailcore.models.Page` object by calling the :meth:`~PageRevision.as_page_object` method