|
@@ -683,10 +683,6 @@ Every time a page is edited, a new `Revision` is created and saved to the databa
|
|
|
- The content of the page is JSON-serialisable and stored in the {attr}`~Revision.content` field.
|
|
|
- You can retrieve a `Revision` as an instance of the object's model by calling the {meth}`~Revision.as_object` method.
|
|
|
|
|
|
-```{versionchanged} 4.0
|
|
|
-The model has been renamed from ``PageRevision`` to ``Revision`` and it now references the ``Page`` model using a {class}`~django.contrib.contenttypes.fields.GenericForeignKey`.
|
|
|
-```
|
|
|
-
|
|
|
### Database fields
|
|
|
|
|
|
```{eval-rst}
|
|
@@ -739,11 +735,6 @@ The model has been renamed from ``PageRevision`` to ``Revision`` and it now refe
|
|
|
(dict)
|
|
|
|
|
|
The JSON content for the object at the time the revision was created.
|
|
|
-
|
|
|
- .. versionchanged:: 3.0
|
|
|
-
|
|
|
- The field has been renamed from ``content_json`` to ``content`` and it now uses :class:`~django.db.models.JSONField` instead of
|
|
|
- :class:`~django.db.models.TextField`.
|
|
|
```
|
|
|
|
|
|
### Managers
|
|
@@ -798,10 +789,6 @@ The model has been renamed from ``PageRevision`` to ``Revision`` and it now refe
|
|
|
|
|
|
This method retrieves this revision as an instance of its object's specific class. If the revision belongs to a page, it will be an instance of the :class:`~wagtail.models.Page`'s specific subclass.
|
|
|
|
|
|
- .. versionchanged:: 4.0
|
|
|
-
|
|
|
- This method has been renamed from ``as_page_object()`` to ``as_object()``.
|
|
|
-
|
|
|
.. automethod:: approve_moderation
|
|
|
|
|
|
Calling this on a revision that's in moderation will mark it as approved and publish it.
|
|
@@ -1279,11 +1266,6 @@ An abstract base class that represents a record of an action performed on an obj
|
|
|
The JSON representation of any additional details for each action.
|
|
|
For example source page id and title when copying from a page. Or workflow id/name and next step id/name on a workflow transition
|
|
|
|
|
|
- .. versionchanged:: 3.0
|
|
|
-
|
|
|
- The field has been renamed from ``data_json`` to ``data`` and it now uses :class:`~django.db.models.JSONField` instead of
|
|
|
- :class:`~django.db.models.TextField`.
|
|
|
-
|
|
|
.. attribute:: timestamp
|
|
|
|
|
|
(date/time)
|