From 16966b195b9ee01b7e6bb4b9af688c1b0e94be4c Mon Sep 17 00:00:00 2001 From: jacobtoppm Date: Thu, 27 Feb 2020 12:07:58 +0000 Subject: [PATCH] Add example of field belonging on custom TaskState, and fix typos --- docs/advanced_topics/custom_tasks.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/advanced_topics/custom_tasks.rst b/docs/advanced_topics/custom_tasks.rst index 83eb21a9d7..4c591f1191 100644 --- a/docs/advanced_topics/custom_tasks.rst +++ b/docs/advanced_topics/custom_tasks.rst @@ -6,7 +6,7 @@ The Workflow system allows users to create tasks, which represent stages of mode Wagtail provides one built in task type: ``GroupApprovalTask``, which allows any user in specific groups to approve or reject moderation. -However, it is possible to add your task types in code. Instances of your custom task can then be created in the ``Tasks`` section of the Wagtail Admin. +However, it is possible to add your own task types in code. Instances of your custom task can then be created in the ``Tasks`` section of the Wagtail Admin. Task models ~~~~~~~~~~~ @@ -47,7 +47,7 @@ For example: Any fields that shouldn't be edited after task creation - for example, anything that would fundamentally change the meaning of the task in any history logs - -can be added to ``exlude_on_edit``. For example: +can be added to ``exclude_on_edit``. For example: .. code-block:: python @@ -71,8 +71,9 @@ can be added to ``exlude_on_edit``. For example: Custom TaskState models ~~~~~~~~~~~~~~~~~~~~~~~ -You might also need to store custom state information for the task. Normally, this is done on an instance of ``TaskState``, which is created when a page starts -the task. However, this can also be subclassed equivalently to ``Task``: +You might also need to store custom state information for the task: for example, a comment left by an approving user. +Normally, this is done on an instance of ``TaskState``, which is created when a page starts the task. However, this can +also be subclassed equivalently to ``Task``: .. code-block:: python